bichanna / slap

🖐 A dynamically- and strongly-typed, object-oriented programming language
https://bichanna.github.io/slap/
MIT License
32 stars 0 forks source link

Infinite Syntax Errors #2

Closed GalaxianMonster closed 2 years ago

GalaxianMonster commented 2 years ago

Code entered to REPL:

rm(o1)

or

anything(1231312312413012340120oo)

Result:

1: rm(o1)
Syntax Error: Expected ';'
1: rm(o1)
Syntax Error: Expected Expression
1: rm(o1)
... and so on
GalaxianMonster commented 2 years ago

It also produces 3/2/1 syntax errors when:

3 Errors:

>> anything()
1: anything()
SyntaxError: Expected ';'
1: anything()
SyntaxError: Expected an expression
1: anything()
SyntaxError: Expected ';'

2 Errors:

>> anything(1)
1: anything(1)
SyntaxError: Expected ';'
1: anything(1)
SyntaxError: Expected ';'

or:

>> anything(1);;
1: anything(1);;
SyntaxError: Expected ';'
1: anything(1);;
SyntaxError: Expected an expression

1 Error:

>> anything(1);
1: anything(1);
SyntaxError: Expected ';'
bichanna commented 2 years ago

Try to compile with this command: nimble build --multimethods:on.

bichanna commented 2 years ago

Or if you are using Mac or Linux, you can do this: ./build.sh. Before running the command you may need to run this chmod +x build.sh

GalaxianMonster commented 2 years ago

Thanks.

bichanna commented 2 years ago

You are welcome :)