Skip to content

Parser doesn't insert Missing where expected #30

Open
@bengolds

Description

@bengolds

I've run into two more cases where I'd expect the parser to give an error by inserting Missing, akin to #28:

\\frac{x}{}=y parses as [ 'Multiply', [ 'Divide', 'x', '=' ], 'y' ]

\\sqrt{}=y parses as [ 'Multiply', [ 'Sqrt', '=' ], 'y' ]

Note that in both cases, if you have \placeholder inside of the empty brackets, it parses correctly:

\\frac{x}{\\placeholder}=y  parses as [ 'Equal', [ 'Divide', 'x', 'Missing' ], 'y' ]

\\sqrt{\\placeholder}=y parses as [ 'Equal', [ 'Sqrt', 'Missing' ], 'y' ]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions