tokenKind.js 695 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.TokenKind = void 0;
  6. /**
  7. * An exported enum describing the different kinds of tokens that the
  8. * lexer emits.
  9. */
  10. var TokenKind = Object.freeze({
  11. SOF: '<SOF>',
  12. EOF: '<EOF>',
  13. BANG: '!',
  14. DOLLAR: '$',
  15. AMP: '&',
  16. PAREN_L: '(',
  17. PAREN_R: ')',
  18. SPREAD: '...',
  19. COLON: ':',
  20. EQUALS: '=',
  21. AT: '@',
  22. BRACKET_L: '[',
  23. BRACKET_R: ']',
  24. BRACE_L: '{',
  25. PIPE: '|',
  26. BRACE_R: '}',
  27. NAME: 'Name',
  28. INT: 'Int',
  29. FLOAT: 'Float',
  30. STRING: 'String',
  31. BLOCK_STRING: 'BlockString',
  32. COMMENT: 'Comment'
  33. });
  34. /**
  35. * The enum type representing the token kinds values.
  36. */
  37. exports.TokenKind = TokenKind;