A compiler for Pascal written in Java. No fancy libraries used. Process broken down into Lexer,Parser,Checker and Compiler, following an optimized Top Down Parser algorithm.
Compiler developed in the Computer Engineering course as a didatic model, using recursive-descent parsing and backpatch based code generation to the target assembly language,
Pascal Compiler uses top-down parsing to compile the Pascal code, and works with the lexer that breaks down the code into tokens. There are 6 token types that lexer recognizes: word, integer, real, real with an e., special characters and column-equal.
A compiler for a made up language using a table-driven DFA lexer, predictive recursive descent parsing, and syntax directed translation to generate p-code for a virtual machine. The virtual machine is also included in this project.