Skip to content

This program finds Firsts and Follows for every symbol in a given grammar

Notifications You must be signed in to change notification settings

MossaabDev/Grammar-First-and-Follow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grammar-First-and-Follow

This program finds Firsts and Follows for every symbol in a given grammar. This is a desktop application with Java UI Swing, allows you to enter a grammar, then it gives you firsts and follows of the nonTerminal symbols used in the rules of the grammar.

How To Use This Application

There are two parts of the program, one for symbols declaration (Terminal and nonTerminal), and second for rules of the grammar.

Symbols

You should declare all the symbols of the grammar, and define the type of the symbol as well (t: Terminal, n_t: nonTerminal).

Symbols Section

Rules

In this section, you have to define the rules of the grammar, use "." for concatenation, and "|" for alternation

Rules Section

Results

Click the execute button after entering all the rules, and a pop up window will show up with all the firsts and follows of the nonTerminal symbols.

Rules Section

About

This program finds Firsts and Follows for every symbol in a given grammar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages