bauripalash / pankti-old

Legacy Prototype Compiler and Virtual Machine Implementation of Pankti Programming Language written in Go
https://pankti.palashbauri.in
GNU General Public License v3.0
4 stars 0 forks source link

Messed up error reporting systems #12

Open bauripalash opened 1 year ago

bauripalash commented 1 year ago

While I was working on the new import module system, I observed that if we write comments, the MakeErrorLine function either throws an index out of reach panic or highlights wrong tokens as errors.

It must be fixed before the 0.2.0 release. Currently, we are on alpha.1 on the main branch and the new include mechanism would be alpha.2

Related to #8

bauripalash commented 1 year ago

Some improvements were made in ErrorHelper function to provide better error handling to stdlib functions but the the problem with comments issue has not been solved (https://github.com/bauripalash/pankti/commit/c5dc08748baf14e9fd16c968e800735e91de6dee)

This issue will be not worked on until I have finished working on implementing about 90% of stdlib functions mentioned in stdlib_todos.md. #6 will have more priority now than this one.

bauripalash commented 1 year ago

Update 25-12-2022: error reporting system is way worse than before.

https://github.com/bauripalash/pankti/blob/d3c7aeea5e819bde5ae1bb2e094ed567b8d211ca/object/errorhelper.go#L59