mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-05 22:48:42 +00:00
parse token type constants added
This commit is contained in:
parent
d1cd6d4b83
commit
36eb3390aa
1 changed files with 79 additions and 0 deletions
|
|
@ -54,7 +54,86 @@ const std::string FlowControl = "flow_control";
|
|||
|
||||
// Statements, expressions, blocks, etc. -----------------
|
||||
|
||||
const std::string Block = "block";
|
||||
const std::string ScopedStatement = "scoped_statement";
|
||||
|
||||
const std::string LoopExpressionToken = "loop_expression_token";
|
||||
|
||||
const std::string SubExpreessionToken = "subexpression_token";
|
||||
const std::string SubExpression = "subexpression";
|
||||
const std::string PrefixedExprerssion = "prefixed_expression";
|
||||
const std::string Expression = "expression";
|
||||
const std::string SuperExpression = "super_expression";
|
||||
|
||||
const std::string BlockStatement = "block_statement";
|
||||
|
||||
// Operators
|
||||
|
||||
const std::string BinaryOperatorExpression = "binary_operator_expression";
|
||||
const std::string UnaryOperatorExpression = "unary_operator_expression";
|
||||
|
||||
// Simple Expressions
|
||||
|
||||
const std::string FunctionCallExpression = "function_call_expression";
|
||||
const std::string TupleExpression = "tuple_expression";
|
||||
const std::string VarinatExpression = "variant_expression";
|
||||
const std::string ReturnExpression = "return_expression";
|
||||
|
||||
const std::string FunctionArgument = "function_argument";
|
||||
|
||||
// Lambda
|
||||
|
||||
const std::string LambdaFunction = "lambda_function";
|
||||
|
||||
// Name
|
||||
|
||||
const std::string NameSuperExpression = "name_superexpression";
|
||||
const std::string NameExpression = "name_expression";
|
||||
const std::string TupleName = "tuple_name";
|
||||
const std::string VariantName = "variant_name";
|
||||
const std::string AnnotatedName = "annotated_name";
|
||||
|
||||
const std::string AnyName = "any_name";
|
||||
|
||||
// Type
|
||||
|
||||
const std::string TypeConstructor = "type_constructor";
|
||||
const std::string TupleType = "tuple_type";
|
||||
const std::string VariantType = "variant_type";
|
||||
const std::string AnnotatedType = "annotated_type";
|
||||
const std::string ParametrizedType = "parametrized_type";
|
||||
const std::string TypeExpression = "type_expression";
|
||||
|
||||
const std::string AnyType = "any_type";
|
||||
const std::string TypeSubExpression = "type_subexpression";
|
||||
|
||||
const std::string TypeParameter = "type_parameter";
|
||||
|
||||
// Typeclass
|
||||
|
||||
const std::string AnnotatedTypeclass = "annotated_typeclass";
|
||||
const std::string ParamatrizedTypeclass = "parametrized_typeclass";
|
||||
const std::string TypeclassExpression = "typeclass_expression";
|
||||
|
||||
// Identifiers, constants, etc. -----------------
|
||||
|
||||
const std::string TypeclassIdentifier = "typeclass_identifer";
|
||||
const std::string NameIdentifier = "name_identifier";
|
||||
const std::string TypeIdentifier = "type_identifer";
|
||||
const std::string AbstractTypeIdentifier = "abstract_type_identifier";
|
||||
|
||||
const std::string OperatorIdentifier = "operator_identifier";
|
||||
|
||||
//
|
||||
|
||||
const std::string FloatNumberLiteral = "float_number_literal";
|
||||
const std::string NumberLiteral = "number_literal";
|
||||
const std::string StringLiteral = "string_literal";
|
||||
const std::string CharLiteral = "char_literal";
|
||||
|
||||
const std::string Literal = "literal";
|
||||
|
||||
const std::string NameSubSuperExpression = "name_subsuperexpression";
|
||||
|
||||
} // namespace tokens
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue