ffahleraz / cyk-slr-parser

An implementation of CYK and SLR (LR(1)) parsing of Pascal language using C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pascal Language Parser

Implementation of CYK and LR(1) parser in C. By:

  • Ahmad Faiz S.
  • Faza Fahleraz
  • M. Sulthan Adhipradhana

Overview

This program parses and validate the syntax of a Pascal Language source code. If there is a syntax error, this program will also retrieve and show the cause of that error.

Compiling

  • Navigate to the 'bulid' directory.
  • Using command line, run:
$ make

Usage

  • Navigate to the 'bulid' directory.
  • Using command line, run:
$ ./parser <source_code_file_name>

Notes

  • The 'cnf' folder inside 'build' contains all of the information about the grammar. Do not edit this.

About

An implementation of CYK and SLR (LR(1)) parsing of Pascal language using C


Languages

Language:C 93.3%Language:C++ 3.7%Language:Pascal 2.3%Language:Makefile 0.6%