|
MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
|
Functions | |
| void | print_type_TokenType (std::ostream &out, const TokenType &tt) |
| Print a TokenType name to a stream. | |
| void | print_type_CharType (std::ostream &out, const CharType &c) |
| Print a CharType name to a stream. | |
| std::optional< OperatorType > | lookUp (const std::string &op) |
| Look up an operator string and return its OperatorType. | |
| std::optional< KeywordType > | lookUp_Keyword (const std::string &op) |
| Look up a keyword string and return its KeywordType. | |
Variables | |
| std::vector< std::string > | opName |
| Human-readable display names indexed by OperatorType. | |
| std::vector< std::string > | opStrings |
| Operator string representations indexed by OperatorType. | |
| std::vector< std::string > | kwStr {"let", "proc", "define", "if", "else", "switch", "while", "for", "return", "break", "continue"} |
| Keyword string representations indexed by KeywordType. | |
| std::vector< std::string > | strTokenType {"Identifier", "Argument", "Symbols", "String", "Numeric", "Hex", "NULL"} |
| string names of TokenType values | |
| std::vector< std::string > | sstrCharType |
| string names of CharType values | |
| std::vector< std::string > | strCharType {"Characters", "Digits", "Symbols", "String", "Quote", "Space", "NULL"} |
|
strong |
|
strong |
|
strong |
Enumeration of all recognised operator symbols.
|
strong |
| std::optional< OperatorType > types::lookUp | ( | const std::string & | op | ) |
Look up an operator string and return its OperatorType.
| op | Operator string (e.g. "++", "<=") |
Definition at line 25 of file types.cpp.
References opStrings.
| std::optional< KeywordType > types::lookUp_Keyword | ( | const std::string & | op | ) |
Look up a keyword string and return its KeywordType.
| op | Keyword string (e.g. "if", "while") |
Definition at line 33 of file types.cpp.
References kwStr.
| void types::print_type_CharType | ( | std::ostream & | out, |
| const CharType & | c ) |
Print a CharType name to a stream.
| out | Output stream |
| c | Character type to print |
Definition at line 19 of file types.cpp.
References strCharType.
| void types::print_type_TokenType | ( | std::ostream & | out, |
| const TokenType & | tt ) |
Print a TokenType name to a stream.
| out | Output stream |
| tt | Token type to print |
Definition at line 13 of file types.cpp.
References strTokenType.
Referenced by scan::token::Token< Ch, String >::print().
|
inline |
Keyword string representations indexed by KeywordType.
Definition at line 210 of file types.hpp.
Referenced by lookUp_Keyword().
|
inline |
Human-readable display names indexed by OperatorType.
|
inline |
Operator string representations indexed by OperatorType.
Definition at line 142 of file types.hpp.
Referenced by lookUp().
|
extern |
string names of CharType values
| std::vector<std::string> types::strCharType {"Characters", "Digits", "Symbols", "String", "Quote", "Space", "NULL"} |
Definition at line 11 of file types.cpp.
Referenced by print_type_CharType().
| std::vector< std::string > types::strTokenType {"Identifier", "Argument", "Symbols", "String", "Numeric", "Hex", "NULL"} |
string names of TokenType values
Definition at line 10 of file types.cpp.
Referenced by print_type_TokenType().