Commit Graph

17 Commits

Author SHA1 Message Date
Sasha Koshka
7fc51c278f Fixed issue with Error.Error not positioning marker correctly 2022-08-15 14:30:54 -04:00
856d5763d3 Lexer tokens are now created by the lexer
This is so positional information can be accurately embedded into them.
2022-08-12 14:34:07 -05:00
accf528869 Locations and tokens are now capable of creating errors on their own 2022-08-12 13:51:38 -05:00
7914f0df45 Location now stores width instead of Error 2022-08-12 13:43:09 -05:00
2a7111e700 Colored error line/column numbers as well 2022-08-11 13:16:59 -05:00
dfa64f3c3d Added color to errors 2022-08-11 13:15:57 -05:00
9c1baf8216 Lexer can now tokenize
minus
decrement
return direction
separator
2022-08-10 14:18:28 -04:00
d43a2540cf Fixed error formatting column indicator 2022-08-10 14:08:04 -04:00
245798f33d Print warning when a tab is discovered where it shouldn't be 2022-08-10 01:22:53 -04:00
Sasha Koshka
c23413eedf Added print method to error 2022-08-09 20:12:33 -04:00
Sasha Koshka
a755fc9f41 Error handling is now done with a custom error in the file package 2022-08-09 02:25:45 -04:00
Sasha Koshka
3a0fc0d57c Added ReadString method to file 2022-08-09 01:13:49 -04:00
Sasha Koshka
47517d7139 Added ReadRune method to file 2022-08-09 01:07:14 -04:00
Sasha Koshka
3ba528509c Added licesnse 2022-08-09 01:02:03 -04:00
Sasha Koshka
c3a5b15049 Added Location struct
Its purpose is to carry error reporting information with it outside of files.
2022-08-03 13:40:00 -04:00
Sasha Koshka
64a8a2445a File is now capable of printing errors 2022-08-03 13:28:37 -04:00
Sasha Koshka
4d94e5738d Added file struct that satisfies io/fs.File
This will be used to abstract os.File and enable error reporting.
2022-08-03 12:11:59 -04:00