This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

48 lignes
654 B

  1. //
  2. // Numbers
  3. //
  4. DIGIT: "0".."9"
  5. HEXDIGIT: "a".."f"|"A".."F"|DIGIT
  6. INT: DIGIT+
  7. SIGNED_INT: ["+"|"-"] INT
  8. DECIMAL: INT "." INT? | "." INT
  9. // float = /-?\d+(\.\d+)?([eE][+-]?\d+)?/
  10. _EXP: ("e"|"E") SIGNED_INT
  11. FLOAT: INT _EXP | DECIMAL _EXP?
  12. NUMBER: FLOAT | INT
  13. SIGNED_NUMBER: ["+"|"-"] NUMBER
  14. //
  15. // Strings
  16. //
  17. STRING_INNER: ("\\\""|/[^"]/)
  18. ESCAPED_STRING: "\"" STRING_INNER* "\""
  19. //
  20. // Names (Variables)
  21. //
  22. LCASE_LETTER: "a".."z"
  23. UCASE_LETTER: "A".."Z"
  24. LETTER: UCASE_LETTER | LCASE_LETTER
  25. WORD: LETTER+
  26. CNAME: ("_"|LETTER) ("_"|LETTER|DIGIT)*
  27. //
  28. // Whitespace
  29. //
  30. WS_INLINE: (" "|/\t/)+
  31. WS: /[ \t\f\r\n]/+
  32. CR : /\r/
  33. LF : /\n/
  34. NEWLINE: (CR? LF)+