slex library
slex - a simple lexer (c) 2023 by Andreas Schwenk mailto:contact@compiler-construction.com License: GPL-3.0-or-later
Classes
- Lexer
- Main class of slex package.
- LexerBackup
- A backup of the current lexer state.
- LexerFile
- An input file.
- LexerState
- Describes the state of the lexer.
- LexerToken
- The token.
Enums
- Language
- slex - a simple lexer (c) 2023 by Andreas Schwenk mailto:contact@compiler-construction.com License: GPL-3.0-or-later The available languages for error messages.
- LanguageText
- The available predefined error message types.
- LexerTokenType
- slex - a simple lexer (c) 2023 by Andreas Schwenk mailto:contact@compiler-construction.com License: GPL-3.0-or-later The token type.
Functions
-
getStr(
LanguageText str) → String - Gest an error messgage string, defined in the current language lang.
-
setLanguage(
Language l) → void - Sets the currently selected language for error messages.