Advertisement
sci4me

Neo

Jun 18th, 2017
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. name: Neo
  2. file extensions: .neo
  3. example code: https://pastebin.com/yuLAWdp3
  4.  
  5. comments:
  6. single line: //
  7. multi-line (with nesting): /* and */
  8.  
  9. random tokens in the syntax:
  10. (
  11. )
  12. =>
  13.  
  14. operators:
  15. +
  16. -
  17. *
  18. /
  19. %
  20. **
  21. <<
  22. >>
  23. &
  24. |
  25. ^
  26. ~
  27. &&
  28. ||
  29. !
  30. #
  31. ..
  32. $
  33. ...
  34. ? and : (ternary)
  35. ==
  36. !=
  37. ===
  38. !==
  39. <
  40. >
  41. <=
  42. >=
  43.  
  44. assignments:
  45. =
  46. +=
  47. -=
  48. *=
  49. /=
  50. %=
  51. **=
  52. <<=
  53. >>=
  54. ~=
  55. &=
  56. |=
  57. ^=
  58. &&=
  59. ||=
  60. ..=
  61.  
  62. keywords:
  63. if
  64. else
  65. for
  66. in
  67. to
  68. by
  69. while
  70. do
  71. break
  72. continue
  73. defer
  74. import
  75. as
  76. exported
  77. final
  78. var
  79. proc
  80. frozen
  81. try
  82. catch
  83. throw
  84.  
  85. literals:
  86. true
  87. false
  88. nil
  89. decimal or hex numbers (for now...)
  90. strings, obviously using " and " (there are no single-tick character literals)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement