-
The current syntax highlighting solution uses a simple lexer to generate a stream of tokens. Adding new languages means adding a new implementation of the lexer to add behaviour for that specific lang…
-
Hello,
First of all, I just want to say thanks for developing and maintaining such a great open source project!
I was trying to use [Graphql Code Generator](https://graphql-code-generator.com/) to…
-
We used to hand-generate the code for a DFA (in a kind of silly way). I removed it in favor of running the regex library, in part because common unicode things like `\w` generated a ridiculous quantit…
-
It will parse error:
```js
let grammar = {
lex: {
rules: [
['\\s+', ''],
['\\d+', () => 'NUMBER'],
['\\+', () => '+'],
['$', () => '…
-
My logos lexer implementation somehow does not match the `TK_NOT` token when there is more input (like a whitespace) after it. Instead it matches the `TK_WORD` token in that case, which should be wron…
-
Programming languages typically have both a lexical grammar, which describes the structure of tokens, and a token grammar, which describes the syntax of the language and in which terminals are tokens.…
-
I wrote a very very cheap lexer/tokenizer generator in BASH to accompany lime (took the manual one from your calc example as reference). Maybe you want to put it in? If you preferred it to be written …
-
I am writing parser generators and would like to experiment with using logos to create lexical scanners, which should be faster than the ones that I've coded. Before I proceed, however, I'd like to k…
-
I have the following in my vim config
```lua
local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs()
parser_config.norg = {
install_info =
{ url = 'https://githu…
-
**Describe the bug**
When using the built-in regex `Regexes.IeeeFloatLiteral` in a lexer like this:
```cs
public enum TokenKind {
[Regex(Regexes.IeeeFloatLiteral)] MyNumberLiteral,
}
```
the …