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

INI-file the right way, both for software and humans 😝 Specification (and grammar) for YINI markup language. It's a config and settings file format (similar (but not same) to INI-files) that consists of plain text with a very simple structure and notation. YINI uses conventions that are familiar to programmers mainly of the C-family of languages.

  • Updated Jan 25, 2025
  • ANTLR