abound
13 hours ago
For a bit deeper intro to PEGs in Janet, the Janet for Mortals guide [1] is pretty incredible here (and also uses HTML as an example).
13 hours ago
For a bit deeper intro to PEGs in Janet, the Janet for Mortals guide [1] is pretty incredible here (and also uses HTML as an example).
4 hours ago
Reminds me of raku (perl6) grammars https://docs.raku.org/language/grammars
8 hours ago
The part I really like about pegs in janet is it works on bytes.
11 hours ago
Are pegs easier for syntax highlighting or LSPs?
33 minutes ago
https://janetdocs.org/ does (server side) syntax highlighting through hiccup-lexer which converts janet-peg's tokens to hiccup: https://github.com/sogaiu/janet-peg
The LSP used on vscode works with PEGs also: https://github.com/CFiggers/janet-lsp/blob/ca526aee35c60bcf5...
5 hours ago
They're not really the same kind of thing. LSP is a carrier format, but it doesn't know or care how you parse things, whether it's with PEGs or an earley parser or shift reduce or whatever
2 hours ago
Yes I know, but are they making LSP server construction easier?