-
Updated
Oct 24, 2021 - C
lexer
A grammar describes the syntax of a programming language, and might be defined in Backus-Naur form (BNF). A lexer performs lexical analysis, turning text into tokens. A parser takes tokens and builds a data structure like an abstract syntax tree (AST). The parser is concerned with context: does the sequence of tokens fit the grammar? A compiler is a combined lexer and parser, built for a specific grammar.
Here are 1,011 public repositories matching this topic...
-
Updated
Oct 16, 2021 - Go
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.
-
Updated
Nov 6, 2021 - C
Test case
typedef dv_base_env_cov #(.CFG_T(tl_agent_env_cfg)) tl_agent_env_cov;Actual output
typedef dv_base_env_cov#(.CFG_T(tl_agent_env_cfg)) tl_agent_env_cov;Expected or suggested output (original formatting)
typedef dv_base_env_cov #(.CFG_T(tl_agent_env_cfg)) tl_agent_env_cov;Verible version:
-
Updated
Sep 20, 2021 - JavaScript
Prepare the parser to PHP 8 :
Work In Progress as RFC are not yet closed
-
Updated
Nov 1, 2021 - Java
-
Updated
Oct 14, 2019 - TypeScript
-
Updated
Oct 15, 2021 - C++
Would it be possible to have the regex parser support character classes like \w within other character classes? I had a regex pattern earlier that used the character class [0-9a-zA-Z_\.-], and I attempted to simplify it with [\w\.\-]. I didn't notice this library doesn't support doing that, and was wondering just how difficult that would be to implement. For the time being i'm just expanding
-
Updated
Nov 10, 2021 - TypeScript
-
Updated
Aug 15, 2021 - C++
-
Updated
Oct 12, 2021 - C++
-
Updated
Mar 20, 2020 - Swift
It seems like graphql parser doesn't like graphql comments in the schemas? This is using the federated proxy example.
build base schema: parse graphql document string: external: unexpected token - got: COMMENT want one of: [], locations:
remote schema
input UserInput {
userID: Int
# Some comment
place: String
}
-
Updated
Sep 25, 2018 - Swift
Flex has a directive %option caseless to lex tokens in a case insensitive way.
Is there currently a way (besides using regular expressions) to accomplish the same?
-
Updated
May 25, 2018 - C++
-
Updated
Jan 9, 2020 - Rust
-
Updated
Feb 7, 2018 - Swift
-
Updated
Nov 9, 2021 - C#
- Wikipedia
- Wikipedia


Everything in diagrams.css should be scoped to some wrapping css class, because as is it cannot be bundled with the rest of an app's css because of styles like this:
Curre