Skip to content
#

grammar

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 840 public repositories matching this topic...

mjhurd
mjhurd commented Jan 26, 2022

Very nice library by the way. I'm having some fun learning it. Thanks!

128 bit integers on gcc on clang may be helpful

compiler specific adjustment that seems to work for line dsl/integer.hpp:76

        else if constexpr (std::is_same_v<T, unsigned long long>)
            return ULLONG_MAX;
+        else if constexpr (std::is_same_v<T, __int128_t>)
+           return __int128_t(LL
bug enhancement help wanted good first issue