You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our app allows end users (not developers) to write mathematical expressions. We would like to present errors in a way that the users will understand. Unfortunately, the parser errors are very low-level and not related to the mathematical syntax.
Examples of actual and desired output:
Input:
Actual error: unexpected EOF while scanning extensions
Desired error: input is empty
Input: (
Actual error: unexpected EOF while scanning extensions
Desired error: missing right parenthesis
Input: )
Actual error: unexpected ")" while scanning extensions
Desired error: missing left parenthesis
Input: ()
Actual error: unexpected ")" while scanning extensions
Desired error: no expression inside parentheses
Input: 1+
Actual error: unexpected EOF while scanning extensions
Desired error: missing expression to the right of "+"
Input: +1
Actual error: unexpected "+" while scanning extensions
Desired error: missing expression to the left of "+"
The text was updated successfully, but these errors were encountered:
Our app allows end users (not developers) to write mathematical expressions. We would like to present errors in a way that the users will understand. Unfortunately, the parser errors are very low-level and not related to the mathematical syntax.
Examples of actual and desired output:
The text was updated successfully, but these errors were encountered: