Vurv78 / Expressive

Expression, but it's Typescript (with extras). Replacement for Expression2, ExpAdv, Starfall

Home Page:https://vurv78.github.io/Expressive/web/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature] Better Error Display

Vurv78 opened this issue · comments

commented

Is your feature request related to a problem? Please describe.
Depends on #10 being fixed.

Describe the solution you'd like
I'd like for error messages to be similar to Rust's errors, where the tokens are pointed out in a code block, and potentially there is a "fixed" code block right under.

E.g.

if (true) {

}

/*
	Warning:
		Redundant if statement:
			if (true)
			^^^^^^^^^ This will always run the if statement.
*/

Or an example from codespan
Example preview