Skip to content

BrunoRB/firstFollow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firstFollow

Simples javascript script that computes FIRST and FOLLOW sets for context-free grammars.

Grammar format

Installing / Running

Try the live demo: https://brunorb.github.io/firstFollow/

or

npm install firstfollow

then for node:

var myGrammar = 'A -> b w';
var firstFollow = require('firstfollow');
var data = firstFollow(myGrammar);
var computedFirstSet = data.firstSet;
var computedFollowSet = data.followSet;

for the browser:

<script src="/src/main.js"><script>`
<script>
var myGrammar = 'A -> b w';
var data = firstFollow(myGrammar);
var computedFirstSet = data.firstSet;
var computedFollowSet = data.followSet;
</script>

License

The MIT License

About

Compute first and follow sets for context-free grammars

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published