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
The origin of the problem is that the grammar converted from the json schema, i.e. examples/grammars/custom_json_grammars/grammars/student.ebnf contains a usage of negation operator ^ at line 4, i.e. char ::= [^"\\]
Since we haven't yet added the support for negation operator , this simply doesn't work and only allows to generate escaped backslashes. #21
As a follow up work of #21 , we should now be able to support json schema. Negation was the only missing operator. See here for more details of how to use json schema
It seems currently the json schema constrain is not working correctly yet
by loading the example student grammar
And run a simple generation we get :
The origin of the problem is that the grammar converted from the json schema, i.e.
examples/grammars/custom_json_grammars/grammars/student.ebnf
contains a usage of negation operator^
at line 4, i.e.char ::= [^"\\]
Since we haven't yet added the support for negation operator , this simply doesn't work and only allows to generate escaped backslashes. #21
A quick fix is to replace it with
char ::= [A-z]
And we get
The text was updated successfully, but these errors were encountered: