/INE5426-A5

Practice of Flex-Bison/C++ for Compilers class. Base example taken from https://github.com/llpilla/compiler_examples.git

Primary LanguageC++GNU General Public License v3.0GPL-3.0

INE5426 - Compilers Construction

Compiler Construction: Computer Science course at INE/UFSC

This is a class exercise for the practice of Flex-Bison/C++. The initial code example was taken from the professor's repository at https://github.com/llpilla/compiler_examples.git (by llpilla)

Flex + Bison C++ example

Files

  • ast.cpp & ast.h: C++ Abstract Syntax Tree definitions and methods
  • parser.y: Bison parser
  • scanner.l: Flex scanner
  • main.cpp: C++ main file
  • Makefile: call make to compile