Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Neo
- file extensions: .neo
- example code: https://pastebin.com/yuLAWdp3
- comments:
- single line: //
- multi-line (with nesting): /* and */
- random tokens in the syntax:
- (
- )
- =>
- operators:
- +
- -
- *
- /
- %
- **
- <<
- >>
- &
- |
- ^
- ~
- &&
- ||
- !
- #
- ..
- $
- ...
- ? and : (ternary)
- ==
- !=
- ===
- !==
- <
- >
- <=
- >=
- assignments:
- =
- +=
- -=
- *=
- /=
- %=
- **=
- <<=
- >>=
- ~=
- &=
- |=
- ^=
- &&=
- ||=
- ..=
- keywords:
- if
- else
- for
- in
- to
- by
- while
- do
- break
- continue
- defer
- import
- as
- exported
- final
- var
- proc
- frozen
- try
- catch
- throw
- literals:
- true
- false
- nil
- decimal or hex numbers (for now...)
- strings, obviously using " and " (there are no single-tick character literals)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement