Closed phorward closed 11 months ago
This pull request is now ready to be merged.
I'm a little unhappy with the current ImlValue implementation, but this is the only way to adequately solve the problem at the moment. Anyway, this should be done better or differently, and I'm sure it will.
All that's missing now is some documentation to describe the new features.
By implementing build-ins with the help of Tokay itself, #120 will be another big milestone to significantly reduce the size of the generated code and thus make Tokay much more performant again like the previous solution. However, this step here has to be to raise Tokay to another level.
About
This PR is intended to coordinate generic parselets & functions in Tokay as established in #10.
To- do
Repeat<P> min=1, max=void
Capture
byRefValue
with a new value typeCapture
, so thatRepeat<Char>
returns a capture range and not a list of values~ turned into #116Pos<P>
Opt<P>
Kle<P>
P+
intoPos<P>
P?
intoOpt<P>
P*
intoKle<P>
List<P, Sep: (',' _), empty: true>
Peek<P>
peek P
byPeek<P>
Not<P>
not P
byNot<P>
Expect<P> msg=void
expect P
byExpect<P>
Keyword<P>
~ turned into #121'kw' _standalone_
byKeyword<'kw'>
~