Thanks to visit codestin.com
Credit goes to github.com

Skip to content

smeetpatel/Simple-Compiler

Repository files navigation

Simple-Compiler

Lexical and syntax phase of the compiler is implemented. Lexical analysis is done using 'lex' tool, the grammar for which is present in "lexicalanalyzer.l" and "header.h" contains auxillary information required in lexical phase.

LL(1) parser is implemented to use for parsing the program.

Valid lexical units can be known from file "lexicalanalyzer.l" and syntax for the language could be known from "grammar.txt".

Test cases are included in subdirectory "TC".

Following the grammar of language, a program can be compiled by following instruction: ./runthis <TC/file_name.in

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published