Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code for Compiler Design Lab, Semester 7

NotificationsYou must be signed in to change notification settings

PalAditya/CompilerDesignLab

Repository files navigation

Code for Compiler Design Lab, Semester 7
Will containimages andREADME files for each assignment if possible.

The work is now available in the form of a library 😄

A basic usage of the library is as easy as follows:

LR1Parserobj=newLR1Parser();//Create an instance of the desired parser-In this case LR1 type parserobj.read_grammar("D://Documents/Lab4/LR0.txt");//Read the grammar fileobj.buildDFA();//Build a dfa from the fileSystem.out.println(obj.states);//Prints the transitions in all statesobj.print_transitions();//Print all the transitionsobj.getParsingTable(true);//Use false to avoid printing the table after creationobj.parse("a c e",true);//Parse the string; use false to prevent the stack actions from displaying on screen

Please move todocs for a full understanding of the library.

Forrelease build:

<dependency>  <groupId>io.github.PalAditya</groupId>  <artifactId>parser-library</artifactId>  <version>0.1.1</version></dependency>

Forsnapshot build:

<dependency>  <groupId>io.github.PalAditya</groupId>  <artifactId>parser-library</artifactId>  <version>0.1-SNAPSHOT</version></dependency>

In case you want the pre-release (latest) versions, you can download it manually fromhere

Note: This is not being maintained anymore. Please seehere to get the latest version of the code.

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp