kschiess / parslet

A small PEG based parser library. See the Hacking page in the Wiki as well.
kschiess.github.com/parslet
MIT License
805 stars 95 forks source link

Toggle off additional info? #211

Open gatperdut opened 3 years ago

gatperdut commented 3 years ago

Hallo!

Since version 2 (I believe) what used to get output as e.g.

{"unlock_item"=>{"target"=>{"word"=>"chest"}}} (using .as())

is now:

{"unlock_item"=>{"target"=>{"word"=>{"line_cache"=>{"last_line_end"=>nil, "line_ends"=>[]}, "position"=>{"bytepos"=>7, "string"=>"unlock chest"}, "str"=>"chest"}}}}

Is there any way to remove that additional info? line_cache, etc.

kschiess commented 1 year ago

Could you give me something executable to see the difference for myself?