|
Yume
|
Classes | |
| struct | Parser |
| class | TokenRange |
Typedefs | |
| using | TokenAtom = std::pair< Token::Type, Atom > |
Variables | |
| static constexpr auto | Word = Token::Type::Word |
| static constexpr auto | Symbol = Token::Type::Symbol |
| static const TokenAtom | KWD_IF = {Word, "if"_a} |
| static const TokenAtom | KWD_IS = {Word, "is"_a} |
| static const TokenAtom | KWD_DEF = {Word, "def"_a} |
| static const TokenAtom | KWD_END = {Word, "end"_a} |
| static const TokenAtom | KWD_LET = {Word, "let"_a} |
| static const TokenAtom | KWD_PTR = {Word, "ptr"_a} |
| static const TokenAtom | KWD_MUT = {Word, "mut"_a} |
| static const TokenAtom | KWD_REF = {Word, "ref"_a} |
| static const TokenAtom | KWD_NEW = {Word, "new"_a} |
| static const TokenAtom | KWD_ELSE = {Word, "else"_a} |
| static const TokenAtom | KWD_SELF_ITEM = {Word, "self"_a} |
| static const TokenAtom | KWD_SELF_TYPE = {Word, "Self"_a} |
| static const TokenAtom | KWD_THEN = {Word, "then"_a} |
| static const TokenAtom | KWD_TRUE = {Word, "true"_a} |
| static const TokenAtom | KWD_TYPE = {Word, "type"_a} |
| static const TokenAtom | KWD_FALSE = {Word, "false"_a} |
| static const TokenAtom | KWD_WHILE = {Word, "while"_a} |
| static const TokenAtom | KWD_CONST = {Word, "const"_a} |
| static const TokenAtom | KWD_STRUCT = {Word, "struct"_a} |
| static const TokenAtom | KWD_RETURN = {Word, "return"_a} |
| static const TokenAtom | KWD_ABSTRACT = {Word, "abstract"_a} |
| static const TokenAtom | KWD_INTERFACE = {Word, "interface"_a} |
| static const TokenAtom | KWD_EXTERN = {Word, "__extern__"_a} |
| static const TokenAtom | KWD_VARARGS = {Word, "__varargs__"_a} |
| static const TokenAtom | KWD_PRIMITIVE = {Word, "__primitive__"_a} |
| static const TokenAtom | SYM_COMMA = {Symbol, ","_a} |
| static const TokenAtom | SYM_DOT = {Symbol, "."_a} |
| static const TokenAtom | SYM_EQ = {Symbol, "="_a} |
| static const TokenAtom | SYM_AT = {Symbol, "@"_a} |
| static const TokenAtom | SYM_LPAREN = {Symbol, "("_a} |
| static const TokenAtom | SYM_RPAREN = {Symbol, ")"_a} |
| static const TokenAtom | SYM_LBRACKET = {Symbol, "["_a} |
| static const TokenAtom | SYM_RBRACKET = {Symbol, "]"_a} |
| static const TokenAtom | SYM_LBRACE = {Symbol, "{"_a} |
| static const TokenAtom | SYM_RBRACE = {Symbol, "}"_a} |
| static const TokenAtom | SYM_EQ_EQ = {Symbol, "=="_a} |
| static const TokenAtom | SYM_NEQ = {Symbol, "!="_a} |
| static const TokenAtom | SYM_AND = {Symbol, "&"_a} |
| static const TokenAtom | SYM_LT = {Symbol, "<"_a} |
| static const TokenAtom | SYM_GT = {Symbol, ">"_a} |
| static const TokenAtom | SYM_PLUS = {Symbol, "+"_a} |
| static const TokenAtom | SYM_MINUS = {Symbol, "-"_a} |
| static const TokenAtom | SYM_PERCENT = {Symbol, "%"_a} |
| static const TokenAtom | SYM_SLASH_SLASH = {Symbol, "//"_a} |
| static const TokenAtom | SYM_STAR = {Symbol, "*"_a} |
| static const TokenAtom | SYM_BANG = {Symbol, "!"_a} |
| static const TokenAtom | SYM_COLON = {Symbol, ":"_a} |
| static const TokenAtom | SYM_COLON_COLON = {Symbol, "::"_a} |
| static const TokenAtom | SYM_OR_OR = {Symbol, "||"_a} |
| static const TokenAtom | SYM_AND_AND = {Symbol, "&&"_a} |
| static const TokenAtom | SYM_ARROW = {Symbol, "->"_a} |
| static const TokenAtom | SYM_DOLLAR = {Symbol, "$"_a} |
| using yume::ast::parser::TokenAtom = typedef std::pair<Token::Type, Atom> |
Definition at line 74 of file parser.hpp.
Definition at line 99 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_decl().
Definition at line 96 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_const_decl(), and yume::ast::parser::Parser::parse_stmt().
Definition at line 81 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_ctor_decl(), yume::ast::parser::Parser::parse_fn_decl(), yume::ast::parser::Parser::parse_lambda(), yume::ast::parser::Parser::parse_receiver(), and yume::ast::parser::Parser::parse_stmt().
Definition at line 88 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_if_stmt().
Definition at line 82 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_ctor_decl(), yume::ast::parser::Parser::parse_fn_decl(), yume::ast::parser::Parser::parse_if_stmt(), yume::ast::parser::Parser::parse_lambda(), yume::ast::parser::Parser::parse_struct_decl(), and yume::ast::parser::Parser::parse_while_stmt().
Definition at line 102 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_decl().
Definition at line 94 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_primary().
Definition at line 79 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_if_stmt(), and yume::ast::parser::Parser::parse_stmt().
Definition at line 100 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_stmt().
Definition at line 80 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_struct_decl().
Definition at line 83 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_stmt(), and yume::ast::parser::Parser::parse_var_decl().
Definition at line 85 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 87 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_ctor_decl().
Definition at line 104 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_decl().
Definition at line 84 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_type(), yume::ast::parser::Parser::try_parse_function_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 86 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 98 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_return_stmt(), and yume::ast::parser::Parser::parse_stmt().
Definition at line 89 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_type_name().
Definition at line 90 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 97 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_stmt(), and yume::ast::parser::Parser::parse_struct_decl().
Definition at line 91 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_if_stmt().
Definition at line 92 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_primary().
Definition at line 93 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_generic_type_params(), yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 103 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_decl().
Definition at line 95 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_stmt(), and yume::ast::parser::Parser::parse_while_stmt().
Definition at line 118 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 130 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_logical_and().
Definition at line 131 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_receiver(), and yume::ast::parser::Parser::try_parse_function_type().
Definition at line 109 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_decl(), yume::ast::parser::Parser::parse_lambda(), and yume::ast::parser::Parser::parse_struct_decl().
Definition at line 126 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_name(), and yume::ast::parser::Parser::unary_operators().
Definition at line 127 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_ctor_decl(), yume::ast::parser::Parser::parse_fn_or_ctor_decl(), and yume::ast::parser::Parser::parse_primary().
Definition at line 128 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_arg(), yume::ast::parser::Parser::parse_primary(), and yume::ast::parser::Parser::parse_receiver().
Definition at line 106 of file parser.hpp.
Referenced by yume::ast::parser::Parser::collect_with_commas_until(), yume::ast::parser::Parser::consume_with_commas_until(), and yume::ast::parser::Parser::try_parse_function_type().
Definition at line 132 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_primary().
Definition at line 107 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_primary(), and yume::ast::parser::Parser::parse_receiver().
Definition at line 108 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_const_decl(), yume::ast::parser::Parser::parse_fn_decl(), yume::ast::parser::Parser::parse_fn_name(), yume::ast::parser::Parser::parse_lambda(), yume::ast::parser::Parser::parse_receiver(), and yume::ast::parser::Parser::parse_var_decl().
Definition at line 116 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 120 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 114 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_generic_type_params(), yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 112 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_name(), yume::ast::parser::Parser::parse_primary(), yume::ast::parser::Parser::parse_receiver(), yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 110 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_ctor_decl(), yume::ast::parser::Parser::parse_fn_decl(), yume::ast::parser::Parser::parse_lambda(), yume::ast::parser::Parser::parse_primary(), yume::ast::parser::Parser::parse_receiver(), yume::ast::parser::Parser::parse_struct_decl(), and yume::ast::parser::Parser::try_parse_function_type().
Definition at line 119 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 122 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators(), and yume::ast::parser::Parser::unary_operators().
Definition at line 117 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 129 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_logical_or().
Definition at line 123 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 121 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators(), and yume::ast::parser::Parser::unary_operators().
Definition at line 115 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_generic_type_params(), yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 113 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_name(), yume::ast::parser::Parser::parse_primary(), yume::ast::parser::Parser::parse_receiver(), yume::ast::parser::Parser::parse_type(), and yume::ast::parser::Parser::try_parse_type().
Definition at line 111 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_ctor_decl(), yume::ast::parser::Parser::parse_fn_decl(), yume::ast::parser::Parser::parse_lambda(), yume::ast::parser::Parser::parse_primary(), yume::ast::parser::Parser::parse_receiver(), yume::ast::parser::Parser::parse_struct_decl(), and yume::ast::parser::Parser::try_parse_function_type().
Definition at line 124 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
Definition at line 125 of file parser.hpp.
Referenced by yume::ast::parser::Parser::operators().
|
staticconstexpr |
Definition at line 77 of file parser.hpp.
Referenced by yume::ast::parser::Parser::parse_fn_name().
|
staticconstexpr |
Definition at line 76 of file parser.hpp.
Referenced by yume::ast::parser::Parser::consume_word(), yume::ast::parser::Parser::parse_fn_name(), yume::ast::parser::Parser::parse_primary(), yume::ast::parser::Parser::try_parse_type(), and yume::ast::parser::Parser::try_peek_uword().