Re: Using a map vs. using a metadata map

2009-08-22 Thread eyeris
I favor using a map as the state because I think the information in your example is an integral part of most parsing goals, not meta-data retained to serve an auxiliary purpose. An example of what I would consider meta-data for a parser would be the number of calls to consumption functions the par

Using a map vs. using a metadata map

2009-08-21 Thread samppi
I'm trying to make a decision in a parser library between using regular maps as states (containing a sequence of remaining tokens, as well as other info) vs. using metadata maps attached to the sequence of remaining tokens. In other words: {:remainder [\r \e \m], :index 3, :line 5, :column 2}