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
I used <T>(sep: Parser<string>, val: Parser<T>) => ... instead of separatorParser => valueParser => ... to avoid #109.
I results.push(valResult.value) instead of results.push(valResult), because I did not want to work with any[], but was unable find type for results to make this happen. I tried variations of ResultType<T, E, D>[], but got:
TS2345: Argument of type { isError: boolean; value: T; } is not assignable to parameter of type ResultType<T, E, D>
Type { isError: boolean; value: T; } is missing the following properties from type Ok<T, D> : index, result, data
With following code, copied almost unchanged from tutorial 4 (changes are in template arguments, to workaround #109):
I get:
customSepByWithSequenceOf
is unable to parse a list with trailing comma, which according to https://github.com/francisrstokes/arcsecond/blob/main/tutorial/tutorial-part-4.md#writing-custom-combinators it should be able to do.Please find a complete example in https://github.com/devurandom/arcsecond-issue-110-repro.
The text was updated successfully, but these errors were encountered: