VERY VERY SCARY DONT RUnMade with PythonRecent comments (0)
Asteroid - my new programming languageMade with Python
The Asteroid programming language.
this is pretty small currently but it has most of the basic features you would expect.
this is more of a functional language and has no classes at all, but its still more general purpose.
Thanks to @imcute-aaaa for helping me make thisRecent comments (11)AndrewDeng31 month ago
How do you even create a coding language?MiloCat1 month ago
:0MarcellPerger12 months ago
There are a few bugs though:
try:self.current_token = self.tokens[self.pos]except IndexError:# reuse the EOF token at the end to avoid having to construct a new oneself.current_token = self.tokens[-1]CrusherX2 months ago
When its printing out a syntax error, it gives raises a python error:
NameError: Name 'FUN' is not definedon line 21 in
error.py. How to fix: replace the
DEFin that list and remove the
RETURNfrom the list.
For some programs with invalid syntax (e.g
print 1+), it gives a python error instead of the nicely formatted SyntaxErr:. It gives
IndexError: list index out of rangeon line 186 in
parser.py. How to fix: Replace line 186 with something like this:
Legendary.ParanormalCoder2 months ago
this is epic