CSharpTokenConstants.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package de.jplag.csharp;
  2. import de.jplag.TokenConstants;
  3. /**
  4. * Based on the legacy CSharp-1.2 constants. The constants L_BRACE, R_BRACE, and STATIC_CONSTR were removed. Moreover,
  5. * the following constants were added: METHOD_BEGIN, METHOD_END, STRUCT, IF_BEGIN, CLASS, INTERFACE, ENUM_BEGIN,
  6. * ENUM_END and ENUMERAL.
  7. * @author Timur Saglam
  8. */
  9. public interface CSharpTokenConstants extends TokenConstants {
  10. /*
  11. * Token constants:
  12. */
  13. int INVOCATION = 2;
  14. int OBJECT_CREATION = 3;
  15. int ARRAY_CREATION = 4;
  16. int ASSIGNMENT = 5;
  17. int DECLARE_VAR = 6;
  18. int DECLARE_CONST = 7;
  19. int IF = 8;
  20. int ELSE = 9; // TODO TS does not exist
  21. int SWITCH_BEGIN = 10;
  22. int SWITCH_END = 11;
  23. int CASE = 12;
  24. int DO = 13;
  25. int WHILE = 14;
  26. int FOR = 15;
  27. int FOREACH = 16;
  28. int BREAK = 17;
  29. int CONTINUE = 18;
  30. int GOTO = 19;
  31. int RETURN = 20;
  32. int THROW = 21;
  33. int CHECKED = 22;
  34. int UNCHECKED = 23;
  35. int LOCK = 24;
  36. int USING = 25;
  37. int TRY = 26;
  38. int CATCH = 27;
  39. int FINALLY = 28;
  40. int NAMESPACE_BEGIN = 29;
  41. int NAMESPACE_END = 30;
  42. int USING_DIRECTIVE = 31;
  43. int CLASS_BEGIN = 32;
  44. int CLASS_END = 33;
  45. int METHOD = 34;
  46. int PROPERTY = 35;
  47. int EVENT = 36;
  48. int INDEXER = 37;
  49. int OPERATOR = 38;
  50. int CONSTRUCTOR = 39;
  51. int DESTRUCTOR = 40;
  52. int STRUCT_BEGIN = 41;
  53. int STRUCT_END = 42;
  54. int INTERFACE_BEGIN = 43;
  55. int INTERFACE_END = 44;
  56. int ENUM = 45;
  57. int DELEGATE = 46;
  58. int ATTRIBUTE = 47;
  59. int END_IF = 48;
  60. int UNSAFE = 49;
  61. int FIXED = 50;
  62. int METHOD_BEGIN = 51;
  63. int METHOD_END = 52;
  64. int STRUCT = 53;
  65. int IF_BEGIN = 54;
  66. int CLASS = 55;
  67. int INTERFACE = 56;
  68. int ENUM_BEGIN = 57;
  69. int ENUM_END = 58;
  70. int ENUMERAL = 59;
  71. /*
  72. * Number of token constants:
  73. */
  74. int NUM_DIFF_TOKENS = 61;
  75. }