문제

So I have created a .jison file for a search query language that is basically a subset of the SQL where statement. That file can be viewed here:

https://gist.github.com/ryanzec/7d1c8100d1b5f03c0a17

Now it works as I expect it to when converting a string into the JSON object. Now I have read the documentation and can't find anything on this but it is possible to take the outputted JSON object and easily compile that back into the string or do I have to manually write that process for that?

도움이 되었습니까?

해결책

Jison does not have any facilities to automatically perform a transformation which is the reverse of the one you've specified to convert your input to your output. So you have to write the reverse transformation yourself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top