logos
logos copied to clipboard
Create ridiculously fast Lexers
Currently, the `debug` features outputs a diagram that it not very easy to visualize. As demonstrated in #393, GitHub supports mermaid diagrams and I think this would be an excellent...
See Issue: #398 As discussed in the linked issue, this PR adds an `allow_unsafe` feature and gates all unsafe code on it. This _does not_ include that feature in the...
While adding tests for the safe-only code PR, I noticed that the code coverage action hasn't been able to complete successfully for a while. Originally this was caused by rustfmt...
Hi, This is just a question, not a bug report. I'm using Logos to write a lexer for the C programming language. I'm following the book "Writing a C Compiler"...
The following derive setup causes the build to fail: ```rust #[derive(Logos)] enum TokenType { #[regex(r"/\*([^\*]*\*+[^\*/])*([^\*]*\*+|[^\*])*\*/")] BlockComment, } ``` The error printed is: ``` error: rustc interrupted by SIGSEGV, printing backtrace...
Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 2 to 3. Release notes Sourced from thollander/actions-comment-pull-request's releases. v2.5.0 : Node 20 version support What's Changed chore(deps-dev): bump @vercel/ncc from 0.38.0 to 0.38.1 by @dependabot in...
I'm looking to lex a string like "${..}" where the ..'s represent other valid language tokens inside and am wondering what the best way to approach this is. I've tried...
I'm getting a strange error when a regex could match the prefix of another regex. Maybe. I just don't know what the problem is. Here's a simplified case: ``` #[derive(Logos,...
Is it possible for the lexer to run in different modes, where in one mode something might be recognized, and it in another it would not? For example, when lexing...
Here is a short list of bugs / improvements for the book - https://logos.maciej.codes/attributes/logos.html is missing documentation about subpatterns; - broken link to regex in https://logos.maciej.codes/attributes/logos.html; - outdated version of...