package catala
Install
Dune Dependency
Authors
Maintainers
Sources
md5=4a2c5495f30d8fc2e3bf977df6e602f9
sha512=8dcc404b6068b9dbd76982ade60d8fba1950fdd0a8a626db17429120483367dce1f51997e96d7b8ee5308f305c3bcbb897ef85336f25e9ef3681f4cb9237f56a
doc/catala.surface/Surface/Lexer/index.html
Module Surface.Lexer
Source
Concise syntax with English abbreviated keywords.
Boolean reference, used by the lexer as the mutable state to distinguish whether it is lexing code or law.
Mutable string reference that accumulates the string representation of the body of code being lexed. This string representation is used in the literate programming backends to faithfully capture the spacing pattern of the original program
Updates code_string_acc
with the current lexeme
Error-generating helper
Associative list matching each punctuation string part of the Catala syntax with its
Surface.Parser
token. Same for all the input languages (English, French, etc.)
Same as token_list_language_agnostic
, but with tokens whose string varies with the input language.
Main lexing function used in a code block
Main lexing function used outside code blocks