-
I'm working on a parser for a typescript-like language. I initially used nom, but I switched to chumsky because I really like the error generating and the synergy with ariadne. But I noticed just toda…
-
@lfkdsk
> emmmm 红红可以试试上次说的把 parser guard、semantic prediction 这种过程 combinator 化?这样对每个具体流程的各种处理就只是添加一个组合子的流程了。另外还可以加一些 monitor combinator 来搜集信息和统计什么的。
对的。。搞得我想重写。
-
In scala 2.13.5, the match expression will raise inexhaustive warning for following code
```scala
// warning: match may not be exhaustive. It would fail on the following inputs: Error(_, _), Fa…
-
nom 7.1.2 provides a `map_res` combinator but I ended up with a common pattern not ideally handled by `map_res(parser, f)`:
* `parser` deals with the context-free syntactic parse
* `f` does some val…
-
[nom](https://crates.io/crates/nom) is a parser combinator crate which makes parsing binary formats quite easy.
I was thinking about starting a dex parser using it, but your project already exists …
-
[@renatoathaydes] Sorry for the vague title, but I don't know what's going on exactly here...
Here's my code:
``` ceylon
value parser = many(infix(
word(), separatedBy, infix(
…
-
So, I've been keeping the topic of parsers combinators on the back of my head since ~2016 when you introduced me to the idea.
TBH I had some resistance to the approach of parser combinators because…
-
Using combinators on `rec` appears to be fairly common, and it seems to always require defining helpers to make types align, e.g.:
```
andbox : All (Box (Parser' s) :-> Box (Parser' t) :-> Box (Pa…
-
It looks like `cargo test` fails on stable due to a dependency on [Pear](https://github.com/SergioBenitez/Pear). I don't really know what Pear does (parser combinators?) but it doesn't look like typed…
-
I've forgotten that we have to use the tuple syntax:
```tla
\* @type: () => (Bool, Bool);
View1 ==
>
```
The type parser spitted out something incomprehensible:
```sh
scala.MatchError:…