Skip to content

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

Notifications You must be signed in to change notification settings

ffahleraz/cyk-slr-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published