Skip to content

Commit

Permalink
chore: Update lexer link in the compiler walkthrough (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1n3du authored Jun 7, 2024
1 parent f62afff commit b443b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/contributor/compiler_walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Lexing is the process of breaking up a string input into tokens. A Grain program
- identifiers (`myVar`, `List`, etc.)
- comments (`# this is a comment`, etc.)

To make this happen, we use [ocamllex](https://caml.inria.fr/pub/docs/manual-ocaml/lexyacc.html). `ocamllex` is a tool that generates OCaml code to do this based on rules we've defined in [parsing/lexer.mll](https://github.com/grain-lang/grain/blob/main/compiler/src/parsing/lexer.mll).
To make this happen, we use [ocamllex](https://caml.inria.fr/pub/docs/manual-ocaml/lexyacc.html). `ocamllex` is a tool that generates OCaml code to do this based on rules we've defined in [parsing/lexer.re](https://github.com/grain-lang/grain/blob/main/compiler/src/parsing/lexer.re).

## Parsing

Expand Down

0 comments on commit b443b2c

Please sign in to comment.