MarkusAmshove / natls

Language Server implementation for the Natural 4GL programming language
MIT License
12 stars 3 forks source link

Implement type checker #72

Open MarkusAmshove opened 1 year ago

MarkusAmshove commented 1 year ago

Check for TODO(type-check)

Claes65 commented 1 year ago

If you can implement this, then I can start type-checking in all statements. :)

If you look here: https://documentation.softwareag.com/natural/nat827mf/sm/synsym.htm#Operand_Definition_Table - you can see that other than types, we need to be able to determine if a variable is a literal, a group, an array, system variable, a reference to a DB field (statement label), a Dynamic definition or an arithmetic expression.. If a typed variable, we also need the Natural length of it (not the byte length). @MarkusAmshove