Surface.LexerSourceConcise 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