-
In short, instead of passing a token or regex pattern, I want to pass a function that would return Option.
such as:
```rust
#[derive(Logos)]
enum Keyword {
#[token(let)] Let,
#[token(if)…
-
-
It would be useful to be able to express character position constraints in a pure ANTLR grammar (without predicate actions).
Example:
I have lexical rules such as:
PS_BEGIN: {getCharPositionInLine()=…
-
I would like to enable error handling and incremental API of menhir in my project by sedlex+menhir; I'm trying to adopt `attempt2` and `fail` of [this sample](https://gitlab.inria.fr/fpottier/menhir/-…
-
### Description
I recently upgraded from FsLexYacc 10.0 to the latest 11.3.0. After the upgrade, parsing a comment line `// ä` now fails with "unrecognized input". I have made no changes to the lex…
-
The build is configured with `--disable-opt`, yet:
```
/usr/bin/make -C bundles/stdcompat all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_coccinelle/…
-
Attempting to work the almost-equal example in the Lexing and Parsing section, I get an error.
Steps:
- modify Grammar/python.gram and Tokens (see diff below)
- execute `make regen-token regen-p…
-
These highlighters were originally included with the past few versions of [ToolipsMarkdown](https://github.com/ChifiSource/ToolipsMarkdown.jl) -- a now deprecated package. The markdown/`tmd` portion o…
-
Are there anything like flex`s start states or ply`s states?
Or maybe some other way should be used to archive similar behaviour?
-
- [x] Evaluate performance advantages of **not** using the CST for this.
- [ ] Evaluate performance advantages of using custom token patterns, could those be used
to avoid post-processing?
…