zxul767 / lox

An interpreter for the Lox language
1 stars 0 forks source link

add column number in error messages #18

Open zxul767 opened 1 year ago

zxul767 commented 1 year ago

Column numbers can be computed either for each token eagerly (i.e., as attribute on the token right as it is created) or on demand (computed based on the line and the source code offset only when it's time to display an error)