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

这个应用程序可以自动生成特定语法的分析表。例如LL(1)、SLR(1) 和 LR(1)。主要用于编译原理等课程中那些笨拙的问题。This app can automatically generate analysis sheet of specific grammar. e.g. LL(1), SLR(1) and LR(1). Mainly used for those clumsy questions in courses like Principles of Compiling.

  • Updated Jan 12, 2023
  • C#