ratmice / nimbleparse_lsp

lsp server for grmtools lex & yacc
Other
7 stars 1 forks source link

consider wasm based lexers #23

Open ratmice opened 2 years ago

ratmice commented 2 years ago

Currently this requires file based actionless lexing in #21 I would really rather use rust-like raw string literals, e.g. where r##"r#""#"## is the string "r#""#" than toml

To lex these we need a moded lexer which is currently difficult to dogfood, for dogfooding we'd either need some form of actionless moded lexer .l file format capable of this context sensitivity, or find a way to compile and execute actions or manually implemented lexers, e.g. by compiling them to wasm.

The alternate option here is to just use crimson, and either:

In the short term, the last option is most palatable. But you couldn't use the combination of crimson + nimbleparse_lsp until this is fixed.