iamsubhranil / Algi

An LLVM based JIT compiler for an algorithmic language
4 stars 0 forks source link

[Error] <lexer.c:273:tokens_scan> Unexpected token '0.3924.4282' #1

Open BaseMax opened 3 years ago

BaseMax commented 3 years ago

[max@workstation Algi]$ ./a.out tests/test2.algi

[Debug] <main.c:30:read_whole_file> Buffer allocated of length 306 bytes
[Info] <timer.c:21:timer_start> Started Lexing

[Error] <lexer.c:273:tokens_scan> Unexpected token '0.3924.4282'
<line 13>   Set bad = 0.3924.4282
                          ~~~~~~~~~~~

[Info] <timer.c:11:timer_end> Lexing finished in 0.000036 seconds

[Error] <main.c:90:main> 1 errors occurred while lexing!
[Error] <main.c:92:main> Press C to abort : 
BaseMax commented 3 years ago

Thanks, /tests/type2/hlw.algi works as well. $ ./a.out tests/type2/hlw.algi

No plan to generate object file at final step?

iamsubhranil commented 3 years ago

Not really, no. I was just trying to implement JIT using LLVM without getting into much harder parts of the architecture by the means of using something resembling type inference without even knowing a whole lot about it. I've since moved on to other projects, but I'm glad to see it sparkled some interest.

Thank you.