ragel-based json parser #66
WillAbides
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
I'm also new to Ragel, and would like to hear feedback from someone who knows. JSON has unlimited nesting, which means it cannot be parsed by any finite state machine or regular language. Does your implementation overcome this using some feature of Ragel, or by adding an additional (unlimited) state stack? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working on a ragel-based json parser for go.
I started on this to answer the question of why there isn't already a ragel-based generalized json parser for go. I expected to find blocker or performance issues along the way. Instead it's turned into a very efficient parser.
As I'm new to ragel, I am interested in any feedback I can get and anything I could be doing better.
The most interesting machine definitions are skipper and handleObjectValues. They are for finding the end of a json value and running a handler on each value in a json object.
Beta Was this translation helpful? Give feedback.
All reactions