tokens_java.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. [[
  2. "start",
  3. ["keyword","public"],
  4. ["text"," "],
  5. ["keyword","class"],
  6. ["text"," "],
  7. ["identifier","InfiniteLoop"],
  8. ["text"," "],
  9. ["lparen","{"]
  10. ],[
  11. "start"
  12. ],[
  13. "comment",
  14. ["text"," "],
  15. ["comment","/*"]
  16. ],[
  17. "comment",
  18. ["comment"," * This will cause the program to hang..."]
  19. ],[
  20. "comment",
  21. ["comment"," *"]
  22. ],[
  23. "comment",
  24. ["comment"," * Taken from:"]
  25. ],[
  26. "comment",
  27. ["comment"," * http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/"]
  28. ],[
  29. "start",
  30. ["comment"," */"]
  31. ],[
  32. "start",
  33. ["text"," "],
  34. ["keyword","public"],
  35. ["text"," "],
  36. ["keyword","static"],
  37. ["text"," "],
  38. ["keyword","void"],
  39. ["text"," "],
  40. ["identifier","main"],
  41. ["lparen","("],
  42. ["support.function","String"],
  43. ["lparen","["],
  44. ["rparen","]"],
  45. ["text"," "],
  46. ["identifier","args"],
  47. ["rparen",")"],
  48. ["text"," "],
  49. ["lparen","{"]
  50. ],[
  51. "start",
  52. ["text"," "],
  53. ["keyword","double"],
  54. ["text"," "],
  55. ["identifier","d"],
  56. ["text"," "],
  57. ["keyword.operator","="],
  58. ["text"," "],
  59. ["support.function","Double"],
  60. ["text","."],
  61. ["identifier","parseDouble"],
  62. ["lparen","("],
  63. ["string","\"2.2250738585072012e-308\""],
  64. ["rparen",")"],
  65. ["text",";"]
  66. ],[
  67. "start"
  68. ],[
  69. "start",
  70. ["text"," "],
  71. ["comment","// unreachable code"]
  72. ],[
  73. "start",
  74. ["text"," "],
  75. ["support.function","System"],
  76. ["text","."],
  77. ["identifier","out"],
  78. ["text","."],
  79. ["identifier","println"],
  80. ["lparen","("],
  81. ["string","\"Value: \""],
  82. ["text"," "],
  83. ["keyword.operator","+"],
  84. ["text"," "],
  85. ["identifier","d"],
  86. ["rparen",")"],
  87. ["text",";"]
  88. ],[
  89. "start",
  90. ["text"," "],
  91. ["rparen","}"]
  92. ],[
  93. "start",
  94. ["rparen","}"]
  95. ]]