ontodev / valve.js

VALVE in JavaScript
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

WIP - Allow empty quotes #5

Open beckyjackson opened 3 years ago

beckyjackson commented 3 years ago

This fix works for valve.js, but if you port it to valve.py it still fails:

VisitError: Error trying to process rule "alias_0":

TypeError: Undefined and null dont have properties (tried getting property 'join')

This seems to be an issue that we need to fix in the parse.py script (like the fix in https://github.com/ontodev/valve.py/pull/28), but that doesn't work for auto-generating parse.py from valve_grammar.ne.

The closest I got to working with both JS and Python resulted in a value '""' when we just want ''.