keywords property

Map<String, TokenType> keywords
final

Implementation

final Map<String, TokenType> keywords = {
  "and": TokenType.AND,
  "&&": TokenType.AND,
  "class": TokenType.CLASS,
  "else": TokenType.ELSE,
  "false": TokenType.FALSE,
  "for": TokenType.FOR,
  "fun": TokenType.FUN,
  "if": TokenType.IF,
  "null": TokenType.NIL,
  "or": TokenType.OR,
  "||": TokenType.OR,
  "print": TokenType.PRINT,
  "return": TokenType.RETURN,
  "super": TokenType.SUPER,
  "this": TokenType.THIS,
  "true": TokenType.TRUE,
  "var": TokenType.VAR,
  "while": TokenType.WHILE,
  "await": TokenType.AWAIT,
  "async": TokenType.ASYNC,
  "extends": TokenType.EXTENDS,
};