You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
This ticket tracks including line/column/character position information with parsed edn::Value trees. It addresses #149 (comment); it is a pre-requisite, I think, for #168.
which encapsulates a Span of some description coming out of the PEG EDN parser. Sadly, this means we'll need to rewrite or duplicate the edn::Value type to have edn::ValueAndSpan children. I could imagine something like:
edn::Value<V>, where V parameterizes the children (so V = edn::Value is what we have now)
or something like
edn::Value<S>, where S parameterizes the span (so S = () is what we have now).
We'll want to expose this new type, and probably convert to the existing type as well (just dropping all the spans).
This is pretty awkward -- better suggestions appreciated. This could be a good first bug if the patch doesn't try to change existing code too much (i.e., just adds new types and conversions into existing types).
The text was updated successfully, but these errors were encountered:
it churns a lot of existing code, making this not a good first bug;
because it makes programatically generating edn::Value difficult. You can introduce some NullSpan, I guess, but eventually you're going to want just "raw values".
This ticket tracks including line/column/character position information with parsed
edn::Value
trees. It addresses #149 (comment); it is a pre-requisite, I think, for #168.Concretely, I think we want a pair type like:
which encapsulates a
Span
of some description coming out of the PEG EDN parser. Sadly, this means we'll need to rewrite or duplicate theedn::Value
type to haveedn::ValueAndSpan
children. I could imagine something like:edn::Value<V>
, whereV
parameterizes the children (soV = edn::Value
is what we have now)or something like
edn::Value<S>
, whereS
parameterizes the span (soS = ()
is what we have now).We'll want to expose this new type, and probably convert to the existing type as well (just dropping all the spans).
This is pretty awkward -- better suggestions appreciated. This could be a good first bug if the patch doesn't try to change existing code too much (i.e., just adds new types and conversions into existing types).
The text was updated successfully, but these errors were encountered: