|
Functional-lang
0.0
An example functional programming language
|
Lexical Analysis/Tokenizer. More...
#include "func/global.hpp"Go to the source code of this file.
Classes | |
| class | TokenPos |
| class | Lexer |
Enumerations | |
| enum | Token : int { tok_id = 256, tok_num, tok_int, tok_op, tok_eol, tok_eof, tok_obrace, tok_cbrace, tok_lambda, tok_atom, tok_literal, tok_if, tok_then, tok_else, tok_let, tok_in, tok_delim, tok_any, tok_err } |
| Tokens for Tokenizer/Lexical Analysis. More... | |
| enum | Operator { op_eq, op_leq, op_geq, op_le, op_gt, op_land, op_lor, op_add, op_sub, op_mul, op_div, op_pow, op_asg, op_fn } |
| Operator type. More... | |
Functions | |
| std::string | std::to_string (Operator op) noexcept |
| int | getOperatorPrecedence (Operator op) |
Lexical Analysis/Tokenizer.
| enum Operator |
Operator type.
| Enumerator | |
|---|---|
| op_eq | == |
| op_leq | <= |
| op_geq | >= |
| op_le | < |
| op_gt | > |
| op_land | && |
| op_lor | || |
| op_add | |
| op_sub | |
| op_mul | |
| op_div | / |
| op_pow | ^ |
| op_asg | = |
| op_fn | Not a real operator (functional substition) |
| enum Token : int |
Tokens for Tokenizer/Lexical Analysis.
| int getOperatorPrecedence | ( | Operator | op | ) |
1.8.15