An intro to compilers: Simple examples
-
Updated
Feb 6, 2024 - JavaScript
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.
An intro to compilers: Simple examples
A simple interpreter for a large subset of Pascal language written for educational purposes
General-purpose recursive descent parser and evaluator
A lexical analyzer based on DFA that is built using JS and supports multi-language extensions / 一个基于DFA的支持多语言扩展的JS版开源词法分析器
The Letter programming language from "Building a Parser from scratch" by Dmitry Soshnikov
Simple, but extensible lexical scanner. Inspired by, but distinct from, Ruby's StringScanner.
template for lab egg-parser for the subject "Procesadores de Lenguajes" at ULL
Parse any text input to tokens, according to provided regular expressions.
An assignment on simple lexical analysis of compiling techniques for c# using JavaScript.
Trabalho de Analisador Léxico e Sintático para a matéria de Compiladores do curso de Engenharia da Computação.
Compiler implementation in node.js, just for teaching and learning purpose
Evil programming language focus on hack
Lexical analyzer for Javascript developers
Starting code of the first challenge in the Let's Build a Programming Language series.
Gain insights on individual twitter accounts using lexical analysis.