Skip to content
#

lexer-generator

Here are 70 public repositories matching this topic...

logos
ExoticMatter
ExoticMatter commented Jun 13, 2020

It would be nice if subpatterns could be used within subpatterns.

#[derive(Logos, Copy, Clone, Debug)]
#[logos(subpattern a = r"[a-zA-Z!$%&*/:<=>?^_~]")]
#[logos(subpattern b = r"(?&a)|[0-9+\-.@]")]
pub enum Token {
    #[error]
    Error,
    // ...
}

Currently, this is not supported and causes a regex parse error.

enhancement good first issue nice to have

The regex-centric, fast lexical analyzer generator for C++ with full Unicode support. Faster than Flex. Accepts Flex specifications. Generates reusable source code that is easy to understand. Introduces indent/dedent anchors, lazy quantifiers, functions for lex/syntax error reporting, and more. Seamlessly integrates with Bison and other parsers.

  • Updated Mar 13, 2022
  • C++

Improve this page

Add a description, image, and links to the lexer-generator topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the lexer-generator topic, visit your repo's landing page and select "manage topics."

Learn more