better-parse icon indicating copy to clipboard operation
better-parse copied to clipboard

A nice parser combinator library for Kotlin

Results 39 better-parse issues
Sort by recently updated
recently updated
newest added

Seeing that `Grammar` extends `Parser`, I figured I should be able to delegate to a `Grammar`, such as: ```kotlin val exp: Parser by ExpGrammar() // where ExpGrammar is a Grammar...

Im finding that the order I declare my delegates in a parser grammar affects whether or not it parses. I have a grammar like the following: ```kotlin internal class Parser:...

I wonder if there is it possible to implement advanced rules, something like if(condition), then(this rule can be applied). I'm new to both kotlin and parser combinators so maybe my...

Hi, I want to make a grammar with Python-style indentation. In Python: ```py def stuff(): if True: if True: for i in range(2): print(i) print("YAY") ``` How would I make...

Say I have a synthetic situation: number `n` says how many symbols `x` will be after this number. After that, I want to drop all other `x`s. For example: ```kotlin...

Work in progress; haven't fixed all the tests yet. Threw this together and wanted to confirm you are interested in the patch and get any other feedback before I spend...

add version 0.4.0 to maven, it's not there. there are already problems with jcenter

Let's say I have a `String` containing numbers that I want to convert into a `data class`. The fields are of fixed width. How should I go about building a...

Hello, The following code : ```kt val typePrefix by (type * -znws * parser(this::referenceParser) * -znws * -assign) // ... val traitFunction by parser(this::functionSignature) use { CyanTraitDeclaration.Element.Function(CyanFunctionDeclaration(this, null), span) }...