package catala
Install
Dune Dependency
Authors
Maintainers
Sources
md5=4c6f725ef4d21c5ff91f60d74b454ef7
sha512=98806e03daa6f33740b80a0f78a37320fb70ebea8cb927ea8fed022673459189c32e2389ccba0fa25d93f754b0fa0128a5ee28e1bb9abefa330deb4be8cc7d95
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
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