lexer.txt
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:

手机WAP编程

开发平台:

WINDOWS

  1.     Lexer entities
  2.     ==============
  3. * Reserved Words
  4.   The `div=' is actually puctuation.
  5. access
  6. agent
  7. break
  8. case
  9. catch
  10. class
  11. const
  12. continue
  13. debugger
  14. default
  15. delete
  16. div
  17. div=
  18. do
  19. domain
  20. else
  21. enum
  22. equiv
  23. export
  24. extends
  25. extern
  26. false
  27. finally
  28. for
  29. function
  30. header
  31. http
  32. if
  33. import
  34. in
  35. invalid
  36. isvalid
  37. lib
  38. meta
  39. name
  40. new
  41. null
  42. path
  43. private
  44. public
  45. return
  46. sizeof
  47. struct
  48. super
  49. switch
  50. this
  51. throw
  52. true
  53. try
  54. typeof
  55. url
  56. use
  57. user
  58. var
  59. void
  60. while
  61. with
  62. * Punctuation (Plus comment starters)
  63. !
  64. !=
  65. #
  66. %
  67. %=
  68. &
  69. &&
  70. &=
  71. (
  72. )
  73. *
  74. *=
  75. +
  76. ++
  77. +=
  78. ,
  79. -
  80. --
  81. -=
  82. . can be followed by [0-9] => DecimalFloatLiteral
  83. /
  84. /* block comment
  85. // single-line comment
  86. /=
  87. :
  88. ;
  89. <
  90. <<
  91. <<=
  92. <=
  93. =
  94. ==
  95. >
  96. >=
  97. >>
  98. >>=
  99. >>>
  100. >>>=
  101. ?
  102. ^
  103. ^=
  104. {
  105. |
  106. |=
  107. ||
  108. }
  109. ~
  110. * Strings start with ' or "
  111. * Numbers:
  112.   0xHexDigit
  113.   0XHexDigit
  114.   0
  115.   [1-9][0-9]*
  116.   0[0-7]+
  117.   floats start with `DecimalIntegerLiteral' or '.'