Skip to content
#

lexical-analysis

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

This project showcases two approaches to parsing: a bottom-up parser using Flex & Bison, and a top-down parser using Flex & Recursive Descent. Developed as part of a Compiler course exercise, the parsers process Olympic sports data, identifying those that appeared in at least 7 Olympic games.

  • Updated Jul 1, 2024
  • C

Sure, here's a concise description for your repository: This repository contains programs from the Compiler Design Lab, covering lexical analysis, parsing, syntax tree generation, and more. Implemented in C, C++, Java, and Lex, these programs demonstrate essential compiler design concepts and techniques.

  • Updated May 19, 2024
  • C