In, say an error message, if something expects an integer, it should just say 'an integer'.
Best way to implement it is to, in the print function of an integer node (in parse/ast), do a check to see if the internal string is empty.
If it is, then it should say something along the lines of 'an integer'.
This functionality could also be re-used in other settings then, perhaps.
Current Issue
Language primitives are not printed nicely
High-level description of the feature
In, say an error message, if something expects an integer, it should just say 'an integer'. Best way to implement it is to, in the print function of an integer node (in parse/ast), do a check to see if the internal string is empty. If it is, then it should say something along the lines of 'an integer'. This functionality could also be re-used in other settings then, perhaps.