aboutsummaryrefslogtreecommitdiff
path: root/users (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-10home-manager: set the hostnameFranck Cuny1-2/+2
2022-02-10home-manager: fix mpd configFranck Cuny1-4/+9
2022-02-10home-manager: mpd and ncmpcpp configurationFranck Cuny2-0/+11
2022-02-10home-manager: fix typo for polybarFranck Cuny1-1/+1
2022-02-10home-manager: fix the script for polybarFranck Cuny1-1/+1
The path was incorrectly set up.
2022-02-09home-manager: fix GTK configurationFranck Cuny1-2/+5
2022-02-09home-manager: fix configuration for i3/polybarFranck Cuny1-13/+5
At least the correct configuration is put on disk and the startup script is correct.
2022-02-09home-manager: let's try to configure polybarFranck Cuny1-11/+20
There's a few things missing (my binaries for the wifi and battery, at a minimum), but that's fine for now.
2022-02-09desktop: configure GTKFranck Cuny1-0/+30
2022-02-09alacritty: more settingsFranck Cuny1-1/+11
2022-02-09git: update list of things to ignoreFranck Cuny1-1/+21
2022-02-09home-manager: fix zsh configFranck Cuny1-1/+1
2022-02-09home-manager: fix path for zsh.nixFranck Cuny1-0/+0
2022-02-09home-manager: expand zsh configurationFranck Cuny2-0/+22
2022-02-09users: move users configuration to systemsFranck Cuny1-19/+0
2022-02-09home-manager: rofi uses alacrittyFranck Cuny1-1/+1
2022-02-09home-manager: more typos ..Franck Cuny1-2/+2
2022-02-09home-manager: update xdg configurationFranck Cuny1-0/+13
2022-02-09home-manager: i3 + rofi configurationFranck Cuny1-1/+1
2022-02-09home-manager: add mod for i3Franck Cuny1-1/+3
2022-02-09home-manager: typoFranck Cuny1-1/+1
2022-02-09home-manager: i3 configurationFranck Cuny1-0/+6
Add alacritty and use rofi for the menu.
2022-02-09home-manager: add polybar to i3Franck Cuny1-0/+16
2022-02-09home-manager: add tmux configurationFranck Cuny2-0/+14
2022-02-09home-manager: fix one more typoFranck Cuny1-1/+1
2022-02-09home-manager: fix some typosFranck Cuny2-1/+1
2022-02-09home-manager: add more common programsFranck Cuny3-4/+30
Add git configuration and move go to its own module.
2022-02-09terminal: alacritty is our terminal of choiceFranck Cuny2-8/+12
2022-02-09home-manager: fix typoFranck Cuny1-1/+1
2022-02-09home-manager: simplify the configurationFranck Cuny3-16/+19
I'm still struggling with documentation, and I'd rather have something simple that works rather than smart and does not work. The configuration for the host imports the modules that are relevant to that host (in the case of carmel, desktop and systems). For the home-manager, I create a profile "desktop" that contains stuff related to a desktop (i3, etc), and it includes the module "common" that contains stuff that I want on any machines (so that in the future, for a machine that is a server, the home manager will only import "common").
2022-02-08i3: remove extra packages and fix typoFranck Cuny1-1/+1
2022-02-08i3: separate configuration for xserver and i3Franck Cuny1-20/+4
Let's first configure the xserver in the desktop module, then we can have a configuration for i3 in the home-manager.
2022-02-08i3: move configuration to home-managerFranck Cuny2-0/+41
2022-02-08users: enable xdgFranck Cuny1-0/+2
2022-02-08home-manager: typo in my configFranck Cuny1-1/+1
2022-02-08home-manager: fix initial configurationFranck Cuny1-4/+0
This configuration is working, and I'm still unclear of how this is supposed to be done correctly. Might need to iterate a few more times.
2022-02-08home: initial configuration for home managerFranck Cuny2-0/+32
2022-02-07users: initial configuration for my userFranck Cuny1-0/+19
2022-01-30note: update list of chipset for alder lakeFranck Cuny1-2/+11
2022-01-30note: update list of chipset for alder lakeFranck Cuny1-2/+11
2022-01-23build: use more recent version of hugoFranck Cuny1-1/+1
2022-01-23build: use more recent version of hugoFranck Cuny1-1/+1
2022-01-23notes: remove some columns for the various CPUsFranck Cuny1-20/+22
2022-01-23notes: remove some columns for the various CPUsFranck Cuny1-20/+22
2022-01-23CSS: improve readabilityFranck Cuny1-6/+9
Using Firefox' accessibility tool as a guide.
2022-01-23CSS: improve readabilityFranck Cuny1-6/+9
Using Firefox' accessibility tool as a guide.
2022-01-23CSS: adjust some font sizesFranck Cuny1-2/+2
2022-01-23CSS: adjust some font sizesFranck Cuny1-2/+2
2022-01-23CSS: switch from class to idFranck Cuny2-14/+14
These elements are unique on each page.
2022-01-23CSS: switch from class to idFranck Cuny2-14/+14
These elements are unique on each page.
2022-01-23layout: no need for a class to element 'article'Franck Cuny3-3/+3
2022-01-23layout: no need for a class to element 'article'Franck Cuny3-3/+3
2022-01-23css: TOC location based on display's sizeFranck Cuny1-19/+82
Depending on the size of the display, display the TOC either before the article or on the right of the article and let's make it sticky.
2022-01-23css: TOC location based on display's sizeFranck Cuny1-19/+82
Depending on the size of the display, display the TOC either before the article or on the right of the article and let's make it sticky.
2022-01-23layout: proper TOCFranck Cuny1-4/+13
There's a need for two TOCs in the layout: one for when the page is on mobile; one for non mobile. When we are on mobile, we display the first TOC, before the article. When we're not on mobile, we hide that TOC and display one after the document. We restructure a bit the layout so that's it's a bit more readable too, and close tags properly.
2022-01-23layout: proper TOCFranck Cuny1-4/+13
There's a need for two TOCs in the layout: one for when the page is on mobile; one for non mobile. When we are on mobile, we display the first TOC, before the article. When we're not on mobile, we hide that TOC and display one after the document. We restructure a bit the layout so that's it's a bit more readable too, and close tags properly.
2022-01-23layout: wrap content in an "article" tagFranck Cuny2-0/+8
2022-01-23layout: wrap content in an "article" tagFranck Cuny2-0/+8
2022-01-23layout: drop the div 'main'Franck Cuny1-6/+4
The div 'main' is not needed, we are creating an element named 'named' in the main block.
2022-01-23layout: drop the div 'main'Franck Cuny1-6/+4
The div 'main' is not needed, we are creating an element named 'named' in the main block.
2022-01-23css: change style for tablesFranck Cuny1-4/+8
2022-01-23css: change style for tablesFranck Cuny1-4/+8
2022-01-23css: update color for the linksFranck Cuny1-3/+3
Use a light blue.
2022-01-23css: update color for the linksFranck Cuny1-3/+3
Use a light blue.
2022-01-21nav: use 'fcuny.net' instead of template variableFranck Cuny1-1/+1
Otherwise it's the name of the site, which is not what I'm looking for here.
2022-01-21nav: use 'fcuny.net' instead of template variableFranck Cuny1-1/+1
Otherwise it's the name of the site, which is not what I'm looking for here.
2022-01-21css: major cleanupFranck Cuny1-76/+84
2022-01-21css: major cleanupFranck Cuny1-76/+84
2022-01-21nav: align the menu items to the rightFranck Cuny1-2/+7
2022-01-21nav: align the menu items to the rightFranck Cuny1-2/+7
2022-01-21post: change formatting for the dateFranck Cuny1-4/+4
2022-01-21post: change formatting for the dateFranck Cuny1-4/+4
2022-01-21nav: drop one item from the menuFranck Cuny1-7/+0
2022-01-21nav: drop one item from the menuFranck Cuny1-7/+0
2022-01-15blog: leaving twitterFranck Cuny1-0/+10
2022-01-15blog: leaving twitterFranck Cuny1-0/+10
2022-01-13css: more tweakingFranck Cuny1-29/+21
2022-01-13css: more tweakingFranck Cuny1-29/+21
2022-01-10index: rephraseFranck Cuny1-1/+1
2022-01-10index: rephraseFranck Cuny1-1/+1
2022-01-08index: update current jobFranck Cuny1-1/+1
2022-01-08index: update current jobFranck Cuny1-1/+1
2022-01-08blog: add content about PCIeFranck Cuny1-0/+196
2022-01-08blog: add content about PCIeFranck Cuny1-0/+196
2021-12-29blog: notes about AMD and Intel CPUsFranck Cuny1-0/+120
2021-12-29blog: notes about AMD and Intel CPUsFranck Cuny1-0/+120
2021-12-29css: change colors for some sectionsFranck Cuny1-7/+13
2021-12-29css: change colors for some sectionsFranck Cuny1-7/+13
2021-12-29css: adjust line heightFranck Cuny1-4/+1
2021-12-29css: adjust line heightFranck Cuny1-4/+1
2021-12-29css: highlight links with a background colorFranck Cuny1-2/+13
2021-12-29css: highlight links with a background colorFranck Cuny1-2/+13
2021-12-29blog: article on how to use tailscale + traefikFranck Cuny1-0/+121
2021-12-29blog: article on how to use tailscale + traefikFranck Cuny1-0/+121
2021-12-29config: add author informationFranck Cuny1-0/+4
2021-12-29config: add author informationFranck Cuny1-0/+4
2021-12-29layout: add a link to the RSS feed in the menuFranck Cuny1-1/+10
Specify the weight so that the items in the menu are listed in the order I want.
2021-12-29layout: add a link to the RSS feed in the menuFranck Cuny1-1/+10
Specify the weight so that the items in the menu are listed in the order I want.
2021-12-29RSS: fix the templateFranck Cuny1-3/+5
Generate correctly the content of the RSS feed. I only want the blog articles, not the notes.
2021-12-29RSS: fix the templateFranck Cuny1-3/+5
Generate correctly the content of the RSS feed. I only want the blog articles, not the notes.
2021-12-20css: improve the color and fontsFranck Cuny1-116/+47
2021-12-20css: improve the color and fontsFranck Cuny1-116/+47
2021-12-20index: re-organize the main pageFranck Cuny1-9/+11
Add a "contact" header with my information under it.
2021-12-20index: re-organize the main pageFranck Cuny1-9/+11
Add a "contact" header with my information under it.
2021-12-20menu: simplify the menuFranck Cuny2-9/+10
2021-12-20menu: simplify the menuFranck Cuny2-9/+10
2021-12-06build: push git branches / tags after deployFranck Cuny1-0/+2
After a successful deploy, push all the branches / tags to origin.
2021-12-06build: push git branches / tags after deployFranck Cuny1-0/+2
After a successful deploy, push all the branches / tags to origin.
2021-12-06CSS: drop custom fonts + colorsFranck Cuny1-19/+22
2021-12-06CSS: drop custom fonts + colorsFranck Cuny1-19/+22
2021-11-12resume: updateFranck Cuny1-0/+0
2021-11-12resume: updateFranck Cuny1-0/+0
2021-11-12static: add my resumeFranck Cuny1-0/+0
2021-11-12static: add my resumeFranck Cuny1-0/+0
2021-10-21build: be explicit about the image to useFranck Cuny1-1/+1
If we're not explicit, we're trying to run the image tagged `latest', but there's no image with that tag.
2021-10-21build: be explicit about the image to useFranck Cuny1-1/+1
If we're not explicit, we're trying to run the image tagged `latest', but there's no image with that tag.
2021-10-02static: add ssh-key from desktopFranck Cuny1-0/+1
2021-10-02static: add ssh-key from desktopFranck Cuny1-0/+1
2021-09-09build: get the proper version for taggingFranck Cuny1-5/+2
We were evaluating the version of the app when the rule was evaluated, while we need to get the version after we run `flyctl deploy`. Since we're tagging a release, let's also annotate the tag. Remove the `--build-arg` argument to `flyct deploy` since it's being ignored (same with `docker build`). Closes #1.
2021-09-09build: get the proper version for taggingFranck Cuny1-5/+2
We were evaluating the version of the app when the rule was evaluated, while we need to get the version after we run `flyctl deploy`. Since we're tagging a release, let's also annotate the tag. Remove the `--build-arg` argument to `flyct deploy` since it's being ignored (same with `docker build`). Closes #1.
2021-09-09blog: update elisp for git/sourcegraphFranck Cuny1-3/+12
2021-09-09blog: update elisp for git/sourcegraphFranck Cuny1-3/+12
2021-08-26static: add profile pictureFranck Cuny1-0/+0
2021-08-26static: add profile pictureFranck Cuny1-0/+0
2021-08-24blog: git-link and sourcegraphFranck Cuny1-0/+40
2021-08-24blog: git-link and sourcegraphFranck Cuny1-0/+40
2021-08-24blog: sort pages in reverse orderFranck Cuny1-1/+1
2021-08-24blog: sort pages in reverse orderFranck Cuny1-1/+1
2021-08-24build: sleep before taggingFranck Cuny1-0/+1
The last deploy was tagged v13, while the version deployed was 14. It's possible that running `fly info` too quickly after a deploy returns the incorrect version. Adding a `sleep 5` before running the command for git tag.
2021-08-24build: sleep before taggingFranck Cuny1-0/+1
The last deploy was tagged v13, while the version deployed was 14. It's possible that running `fly info` too quickly after a deploy returns the incorrect version. Adding a `sleep 5` before running the command for git tag.
2021-08-23CSS: various small fixesFranck Cuny1-2/+2
2021-08-23CSS: various small fixesFranck Cuny1-2/+2
2021-08-23index: drop the main headerFranck Cuny1-2/+0
It's ugly.
2021-08-23index: drop the main headerFranck Cuny1-2/+0
It's ugly.
2021-08-23CSS: use decoration on headers only for articlesFranck Cuny2-6/+10
Add an element "article" to the single page template, and change the CSS to use the decoration for headers only for that kind of content. Having decoration for all headers is distracting, it's more suited for actual content. We also don't need decoration for h1, only smaller headers.
2021-08-23CSS: use decoration on headers only for articlesFranck Cuny2-6/+10
Add an element "article" to the single page template, and change the CSS to use the decoration for headers only for that kind of content. Having decoration for all headers is distracting, it's more suited for actual content. We also don't need decoration for h1, only smaller headers.
2021-08-23CSS: rename the class for the tagsFranck Cuny1-4/+6
2021-08-23CSS: rename the class for the tagsFranck Cuny1-4/+6
2021-08-23CSS: makes the menu more readableFranck Cuny2-23/+39
Move the title to the left and the menu items to the right.
2021-08-23CSS: makes the menu more readableFranck Cuny2-23/+39
Move the title to the left and the menu items to the right.
2021-08-15build: tag the repo after a deployFranck Cuny1-2/+7
If the deployment is successful, tag the repository with the version being deployed on fly.io. Don't deploy unless the repository is clean (this is done with the target `worktree-clean`).
2021-08-15build: tag the repo after a deployFranck Cuny1-2/+7
If the deployment is successful, tag the repository with the version being deployed on fly.io. Don't deploy unless the repository is clean (this is done with the target `worktree-clean`).
2021-08-15blog: working with go - initial contentFranck Cuny1-0/+264
This note captures things that are useful when working with go for me.
2021-08-15blog: working with go - initial contentFranck Cuny1-0/+264
This note captures things that are useful when working with go for me.
2021-08-15blog: add tags to firecracker notesFranck Cuny1-1/+2
2021-08-15blog: add tags to firecracker notesFranck Cuny1-1/+2
2021-08-15layout: don't use header tag in listFranck Cuny1-1/+1
2021-08-15layout: don't use header tag in listFranck Cuny1-1/+1
2021-08-15CSS: make the content more readableFranck Cuny1-15/+24
The Roboto Slab font is hard to read (at least for me). Switch to Droid Sans and make the text a bit smaller. Change the background of the page to white (again), and change the background color for the code snippets. Add text decoration for headlines (similar to org-bullet).
2021-08-15CSS: make the content more readableFranck Cuny1-15/+24
The Roboto Slab font is hard to read (at least for me). Switch to Droid Sans and make the text a bit smaller. Change the background of the page to white (again), and change the background color for the code snippets. Add text decoration for headlines (similar to org-bullet).
2021-08-15CSS: support table of contentFranck Cuny2-0/+19
If an entry has the parameter `#+toc` set to `t`, we will enable the table of content in the page.
2021-08-15CSS: support table of contentFranck Cuny2-0/+19
If an entry has the parameter `#+toc` set to `t`, we will enable the table of content in the page.
2021-08-15CSS: use a class for the menuFranck Cuny2-8/+7
We will have more use of the tag `nav` and we will need different styles for it.
2021-08-15CSS: use a class for the menuFranck Cuny2-8/+7
We will have more use of the tag `nav` and we will need different styles for it.
2021-08-14blog: replace github with git.fcuny.netFranck Cuny1-1/+1
2021-08-14blog: replace github with git.fcuny.netFranck Cuny1-1/+1
2021-08-14blog: add link for containerd-to-vm codeFranck Cuny1-1/+1
2021-08-14blog: add link for containerd-to-vm codeFranck Cuny1-1/+1
2021-08-14css: reduce the size of the fontFranck Cuny1-1/+1
2021-08-14css: reduce the size of the fontFranck Cuny1-1/+1
2021-08-05css: bigger font and highlight colorsFranck Cuny2-6/+18
Increase the font size and change some of the colors used for highlighting code.
2021-08-05css: bigger font and highlight colorsFranck Cuny2-6/+18
Increase the font size and change some of the colors used for highlighting code.
2021-08-05blog: update descriptionFranck Cuny1-1/+1
2021-08-05blog: update descriptionFranck Cuny1-1/+1
2021-08-05blog: add SSH public keysFranck Cuny2-0/+2
2021-08-05blog: add SSH public keysFranck Cuny2-0/+2
2021-08-05blog: add humans.txtFranck Cuny2-0/+11
See humanstxt.org for more information.
2021-08-05blog: add humans.txtFranck Cuny2-0/+11
See humanstxt.org for more information.
2021-08-05hugo: enable git information againFranck Cuny1-1/+1
Now that we're using a more recent version of the Docker image for hugo that comes with git, we can enable again git information.
2021-08-05hugo: enable git information againFranck Cuny1-1/+1
Now that we're using a more recent version of the Docker image for hugo that comes with git, we can enable again git information.
2021-08-05build: add a MakefileFranck Cuny1-0/+29
Add a Makefile to take care of most common operations (build, deploy, etc).
2021-08-05build: add a MakefileFranck Cuny1-0/+29
Add a Makefile to take care of most common operations (build, deploy, etc).
2021-08-05build: add DockerfileFranck Cuny1-0/+7
The Dockerfile used by fly is relying on an older version of hugo ([1]). We can use a newer version and provide our own setup, and configure with the flags we want (e.g. promote to HTTS automatically). [1] https://github.com/superfly/flyctl/blob/3eb204909fbecd5fd2b1ba4517cdbce2abd9f74a/internal/build/imgsrc/builtins/defaultbuiltins.go#L89
2021-08-05build: add DockerfileFranck Cuny1-0/+7
The Dockerfile used by fly is relying on an older version of hugo ([1]). We can use a newer version and provide our own setup, and configure with the flags we want (e.g. promote to HTTS automatically). [1] https://github.com/superfly/flyctl/blob/3eb204909fbecd5fd2b1ba4517cdbce2abd9f74a/internal/build/imgsrc/builtins/defaultbuiltins.go#L89
2021-07-19hugo: TLS by defaultFranck Cuny1-1/+1
2021-07-19hugo: TLS by defaultFranck Cuny1-1/+1
2021-06-20github: deploy to fly.io instead of GH pagesFranck Cuny1-17/+5
2021-06-20github: deploy to fly.io instead of GH pagesFranck Cuny1-17/+5
2021-06-20hugo: don't enable git infoFranck Cuny1-1/+1
The docker image used by fly.io to deploy a static website with hugo does not come with git, which prevents us to use the option `enableGitInfo`. This is not critical for now, so let's disable it so we can deploy.
2021-06-20hugo: don't enable git infoFranck Cuny1-1/+1
The docker image used by fly.io to deploy a static website with hugo does not come with git, which prevents us to use the option `enableGitInfo`. This is not critical for now, so let's disable it so we can deploy.
2021-06-20fly: add configuration for fly.ioFranck Cuny1-0/+40
2021-06-20fly: add configuration for fly.ioFranck Cuny1-0/+40
2021-05-19blog: update to containerd articleFranck Cuny1-1/+1
Fix boot options
2021-05-19blog: update to containerd articleFranck Cuny1-1/+1
Fix boot options
2021-05-18css: add a scroll bar if the content overflowsFranck Cuny1-1/+1
2021-05-18css: add a scroll bar if the content overflowsFranck Cuny1-1/+1
2021-05-17blog: containerd to firecrackerFranck Cuny1-0/+567
2021-05-17blog: containerd to firecrackerFranck Cuny1-0/+567
2021-05-10readme: convert to org-modeFranck Cuny2-1/+3
2021-05-10lint: fix a few issuesFranck Cuny3-1/+4
2021-05-10git: ignore binary for the REPLFranck Cuny1-0/+1
2021-04-22layout: add a navbarFranck Cuny9-38/+75
I want to differentiate blog's entries from more general notes. For this, we create two menu entries, and add a navbar at the top. The nav bar let us select between the two kind of articles: blogs or notes. For now we have a single blog entry, and no notes. The page to list entries is simplified: we use the same layout for all lists (tags, notes, blogs). The CSS is updated to support the new nav bar.
2021-04-22layout: add a navbarFranck Cuny9-38/+75
I want to differentiate blog's entries from more general notes. For this, we create two menu entries, and add a navbar at the top. The nav bar let us select between the two kind of articles: blogs or notes. For now we have a single blog entry, and no notes. The page to list entries is simplified: we use the same layout for all lists (tags, notes, blogs). The CSS is updated to support the new nav bar.
2021-04-13toml: re-configure markupFranck Cuny1-1/+18
2021-04-13toml: re-configure markupFranck Cuny1-1/+18
2021-04-13css: switch to sans-serif; add tables; other tweaksFranck Cuny1-5/+28
2021-04-13css: switch to sans-serif; add tables; other tweaksFranck Cuny1-5/+28
2021-04-11css: remove extra white spaceFranck Cuny1-1/+1
2021-04-11css: remove extra white spaceFranck Cuny1-1/+1
2021-04-11blog: google doc failureFranck Cuny1-0/+56
2021-04-11blog: google doc failureFranck Cuny1-0/+56
2021-04-11css: change font to roboto slabFranck Cuny1-5/+5
2021-04-11css: change font to roboto slabFranck Cuny1-5/+5
2021-04-11taxonomy: add pages for tagsFranck Cuny3-20/+48
We want to have pages that list all the articles related to a given tag. Update the configuration to add support for tags and the permalink structure.
2021-04-11taxonomy: add pages for tagsFranck Cuny3-20/+48
We want to have pages that list all the articles related to a given tag. Update the configuration to add support for tags and the permalink structure.
2021-04-06layout: add date and tags to single pagesFranck Cuny2-1/+42
We want to show the tags and the published/updated date for the articles. Add to the CSS the classes for these new elements.
2021-04-06layout: add date and tags to single pagesFranck Cuny2-1/+42
We want to show the tags and the published/updated date for the articles. Add to the CSS the classes for these new elements.
2021-04-06css: update style for links and headersFranck Cuny1-4/+8
Indent properly the CSS
2021-04-06css: update style for links and headersFranck Cuny1-4/+8
Indent properly the CSS
2021-04-06css: set background color for code blockFranck Cuny1-5/+9
Indent properly the CSS for the `pre` tag.
2021-04-06css: set background color for code blockFranck Cuny1-5/+9
Indent properly the CSS for the `pre` tag.
2021-04-06css: change the default fontFranck Cuny1-5/+5
2021-04-06css: change the default fontFranck Cuny1-5/+5
2021-04-06layout: fix format for the dateFranck Cuny1-1/+1
2021-04-06layout: fix format for the dateFranck Cuny1-1/+1
2021-04-06layout: clean up empty spaceFranck Cuny1-1/+1
2021-04-06layout: clean up empty spaceFranck Cuny1-1/+1
2021-03-07add action to publish to GH pagesFranck Cuny1-0/+30
Add a workflow configuration to publish to GitHub pages. This is using the standard configuration from https://gohugo.io/hosting-and-deployment/hosting-on-github/
2021-03-07add action to publish to GH pagesFranck Cuny1-0/+30
Add a workflow configuration to publish to GitHub pages. This is using the standard configuration from https://gohugo.io/hosting-and-deployment/hosting-on-github/
2020-01-11repl: support a simple REPL for some early testingfranck cuny2-0/+41
The REPL reads the input, send it to the lexer, and prints the token to STDOUT. For now nothing else is done since we still don't parse the tokens.
2020-01-11lexer: support tokens for equal and not equal.franck cuny2-2/+39
The tokens for equal (`==`) and not equal (`!=`) are composed of two characters. We introduce a new helper (`peekChar`) that we use when we encounter the token `=` or `!` to see if this is a token composed of two characters. Add some tests to ensure they are parsed correctly.
2020-01-11token: add tokens for equal and not equal.franck cuny1-0/+3
2020-01-11lexer: test the new keywords are parsed correctly.franck cuny1-3/+25
Ensure that the new keywords added (`if`, `else`, `true`, `false`, `return`) are parsed correctly.
2020-01-11token: support more keywordsfranck cuny1-2/+13
Add support for a few more keywords (`true`, `false`, `if`, `else`, `return`). All keywords are grouped together in the constant declaration.
2020-01-11token: rewrite documentation for `LookupIdent`.franck cuny1-3/+4
2020-01-11lexer: delete redundant test.franck cuny1-32/+1
The test `TestNextTokenBasic` was not testing anything that `TestNextTokenMonkey` was not already testing. Rename `TestNextTokenMonkey` to `TestNextToken` for clarity.
2020-01-11Makefile: add a Makefilefranck cuny1-0/+4
For now, automate running the tests.
2020-01-11lexer: support more operator tokens.franck cuny2-1/+31
Support the operator tokens that were added to our tokenizer. This also add a few more tests to ensure we handle them correctly.
2020-01-11token: support more operator tokensfranck cuny1-3/+10
Support additional tokens for operators (`-`, `*`, etc). This change only adds the tokens to the list of constants, and group all the tokens related to operators together.
2020-01-11lexer: initial lexerfranck cuny2-0/+218
The initial lexer for the monkey language. We only support a small subset at this stage. We have some simple tests to ensure that we can parse some small snippet, and that the minimum number of tokens we need are also all supported correctly.
2020-01-11token: initial tokenizer.franck cuny1-0/+48
This is the initial tokenizer for the monkey language. For now we recognize a limited number of tokens. We only have two keywords at this stage: `fn` and `let`. `fn` is used to create function, while `let` is used for assigning variables. The other tokens are mostly to parse the source code, and recognize things like brackets, parentheses, etc.
2020-01-11go.mod: create the module 'monkey'franck cuny1-0/+3
The project is named monkey, we add a mod file to ensure that the tooling / dependencies are set up correctly when we import various modules in this project.
2019-12-29Add README.md, LICENSE.txtfranck cuny2-0/+21