|
MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
|
Token, character, and operator type enumerations for the scanner. More...
#include <iostream>#include <optional>#include <string>#include <vector>

Go to the source code of this file.
Namespaces | |
| namespace | types |
Functions | |
| void | types::print_type_TokenType (std::ostream &out, const TokenType &tt) |
| Print a TokenType name to a stream. | |
| void | types::print_type_CharType (std::ostream &out, const CharType &c) |
| Print a CharType name to a stream. | |
| std::optional< OperatorType > | types::lookUp (const std::string &op) |
| Look up an operator string and return its OperatorType. | |
| std::optional< KeywordType > | types::lookUp_Keyword (const std::string &op) |
| Look up a keyword string and return its KeywordType. | |
Variables | |
| std::vector< std::string > | types::opName |
| Human-readable display names indexed by OperatorType. | |
| std::vector< std::string > | types::opStrings |
| Operator string representations indexed by OperatorType. | |
| std::vector< std::string > | types::kwStr {"let", "proc", "define", "if", "else", "switch", "while", "for", "return", "break", "continue"} |
| Keyword string representations indexed by KeywordType. | |
| std::vector< std::string > | types::strTokenType {"Identifier", "Argument", "Symbols", "String", "Numeric", "Hex", "NULL"} |
| string names of TokenType values | |
| std::vector< std::string > | types::sstrCharType |
| string names of CharType values | |
Token, character, and operator type enumerations for the scanner.
Definition in file types.hpp.