Comparison of a SAX-like vs a lex/yac style json parser in erlang
Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
djson.erl
json_grammar.erl
json_lex2.erl
json_parser.erl

README

to run tests, do this in the erl shell:

c(djson), c(json_lex2), c(json_parser), c(json_grammar), djson:test().

there are 2 implementations of decode/1 in djson. (one is sax like, and one uses leex/yecc)

toggle which one is commented out to check that both are equivalent.

see http://github.com/jchris/erlang-json-eep-parser for the complete source for the leex/yecc implementation.