Advertisement
tinyevil

Untitled

Aug 6th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.75 KB | None | 0 0
  1. #define TOKEN_LIST \
  2.     X(Identifier, "identifier") \
  3.     X(NumLiteral, "number") \
  4.     X(StringLiteral, "string") \
  5.     \
  6.     X(KImport, "'import'") \
  7.     X(KNamespace, "'namespace'") \
  8.     X(KPublic, "'public'") \
  9.     X(KPrivate, "'private'") \
  10.     X(KFrom, "'from'") \
  11.     X(KExcept, "'except'") \
  12.     X(KWhere, "'where'") \
  13.     X(KAs, "'as'") \
  14.     X(KRef, "'ref'") \
  15.     X(KIn, "'in'") \
  16.     X(KOut, "'out'") \
  17.     X(KPtr, "'ptr'") \
  18.     X(KCase, "'case'") \
  19.     X(KStruct, "'struct'") \
  20.     X(KClass, "'class'") \
  21.     X(KInstance, "'instance'") \
  22.     X(KField, "'field'") \
  23.     X(KFunction, "'function'") \
  24.     X(KAlias, "'alias'") \
  25.     X(KElse, "'else'") \
  26.     X(KIf, "'if'") \
  27.     X(KWhile, "'while'") \
  28.     X(KReturn, "'return'") \
  29.     X(KVar, "'var'") \
  30.     X(KLet, "'let'") \
  31.     \
  32.     X(KI8, "'i8'") \
  33.     X(KI16, "'i16'") \
  34.     X(KI32, "'i32'") \
  35.     X(KI64, "'i64'") \
  36.     X(KU8, "'u8'") \
  37.     X(KU16, "'u16'") \
  38.     X(KU32, "'u32'") \
  39.     X(KU64, "'u64'") \
  40.     X(KIWord, "'iword'") \
  41.     X(KUWord, "'uword'") \
  42.     \
  43.     X(KF32, "'f32'") \
  44.     X(KF64, "'f64'") \
  45.     \
  46.     X(KUnit, "'unit'") \
  47.     X(KBool, "'bool'") \
  48.     X(KTrue, "'true'") \
  49.     X(KFalse, "'false'") \
  50.     X(KNull, "'null'") \
  51.     \
  52.     X(KAnd, "'and'") \
  53.     X(KOr, "'or'") \
  54.     X(KNot, "'not'") \
  55.     X(KMod, "'mod'") \
  56.     \
  57.     X(OpDot, "'.'") \
  58.     X(OpComma, "','") \
  59.     X(OpColon, "':'") \
  60.     X(OpLParen, "'('") \
  61.     X(OpRParen, "')'") \
  62.     X(OpLBracket, "'['") \
  63.     X(OpRBracket, "']'") \
  64.     X(OpLBrace, "'{'") \
  65.     X(OpRBrace, "'}'") \
  66.     \
  67.     X(OpPlus, "'+'") \
  68.     X(OpMinus, "'-'") \
  69.     X(OpDiv, "'/'") \
  70.     X(OpMult, "'*'") \
  71.     \
  72.     X(OpAssign, "'='") \
  73.     \
  74.     X(OpEQ, "'=='") \
  75.     X(OpNEQ, "'<>'") \
  76.     X(OpLE, "'<='") \
  77.     X(OpGE, "'>='") \
  78.     X(OpLT, "'<'") \
  79.     X(OpGT, "'>'") \
  80.     \
  81.     X(OpArrow, "'->'") \
  82.     X(OpAmpersand, "'&'") \
  83.     X(OpSemicolon, "';'") \
  84.     X(OpQuestion, "'?'") \
  85.     \
  86.     X(EndOfStream, "end of file")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement