Skip to content

gbrault/railroad-diagrams

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

  • Define a grammar using a "functional representation"
  • Display the railroad diagrams of a grammar
  • Display an EBNF textual representation of this grammar
  • Validate expressions written for this grammar
  • Tag associated tokens with corresponding grammar chunks
  • Transform an EBNF grammar into a SRFB grammar format (railroad grammar)
  • Validate expressions compliant with the above EBNF grammar

Where to start

You can

History

I have started with tabakins railroad-diagrams fork, but a lot evolutions took place then, not only one can display svg railroad graphs but can

  • generate the validator
  • validate (is the sentence well formed or not)
  • get the "compiled" result: which part of the sentence is what?

About

grammar definition + svg railroad syntax diagram + language "acceptor" generation end expression validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.1%
  • C++ 6.2%
  • CSS 2.4%
  • HTML 2.2%
  • C 0.7%
  • Python 0.4%