Skip to content

Commit

Permalink
Merge branch 'main' of github.com:openpeeps/toktok
Browse files Browse the repository at this point in the history
  • Loading branch information
georgelemon committed Oct 19, 2023
2 parents 5b7461b + 52527df commit 0bbe373
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
## Quick Example

```nim
# Register your custom handlers
handlers:
proc handleImport(lex: var Lexer, kind: TokenKind) =
# tokenize `import x, y, z`
lex.kind = kind
# Register your tokens
registerTokens defaultSettings:
`const` = "const"
Expand Down

0 comments on commit 0bbe373

Please sign in to comment.