Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define TOKEN_LIST \
- X(Identifier, "identifier") \
- X(NumLiteral, "number") \
- X(StringLiteral, "string") \
- \
- X(KImport, "'import'") \
- X(KNamespace, "'namespace'") \
- X(KPublic, "'public'") \
- X(KPrivate, "'private'") \
- X(KFrom, "'from'") \
- X(KExcept, "'except'") \
- X(KWhere, "'where'") \
- X(KAs, "'as'") \
- X(KRef, "'ref'") \
- X(KIn, "'in'") \
- X(KOut, "'out'") \
- X(KPtr, "'ptr'") \
- X(KCase, "'case'") \
- X(KStruct, "'struct'") \
- X(KClass, "'class'") \
- X(KInstance, "'instance'") \
- X(KField, "'field'") \
- X(KFunction, "'function'") \
- X(KAlias, "'alias'") \
- X(KElse, "'else'") \
- X(KIf, "'if'") \
- X(KWhile, "'while'") \
- X(KReturn, "'return'") \
- X(KVar, "'var'") \
- X(KLet, "'let'") \
- \
- X(KI8, "'i8'") \
- X(KI16, "'i16'") \
- X(KI32, "'i32'") \
- X(KI64, "'i64'") \
- X(KU8, "'u8'") \
- X(KU16, "'u16'") \
- X(KU32, "'u32'") \
- X(KU64, "'u64'") \
- X(KIWord, "'iword'") \
- X(KUWord, "'uword'") \
- \
- X(KF32, "'f32'") \
- X(KF64, "'f64'") \
- \
- X(KUnit, "'unit'") \
- X(KBool, "'bool'") \
- X(KTrue, "'true'") \
- X(KFalse, "'false'") \
- X(KNull, "'null'") \
- \
- X(KAnd, "'and'") \
- X(KOr, "'or'") \
- X(KNot, "'not'") \
- X(KMod, "'mod'") \
- \
- X(OpDot, "'.'") \
- X(OpComma, "','") \
- X(OpColon, "':'") \
- X(OpLParen, "'('") \
- X(OpRParen, "')'") \
- X(OpLBracket, "'['") \
- X(OpRBracket, "']'") \
- X(OpLBrace, "'{'") \
- X(OpRBrace, "'}'") \
- \
- X(OpPlus, "'+'") \
- X(OpMinus, "'-'") \
- X(OpDiv, "'/'") \
- X(OpMult, "'*'") \
- \
- X(OpAssign, "'='") \
- \
- X(OpEQ, "'=='") \
- X(OpNEQ, "'<>'") \
- X(OpLE, "'<='") \
- X(OpGE, "'>='") \
- X(OpLT, "'<'") \
- X(OpGT, "'>'") \
- \
- X(OpArrow, "'->'") \
- X(OpAmpersand, "'&'") \
- X(OpSemicolon, "';'") \
- X(OpQuestion, "'?'") \
- \
- X(EndOfStream, "end of file")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement