theoremoon / randsrc

Generate random sources that derived by a given BNF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RANDSRC

Generate random strings that derived by a given BNF

example

$ ./randsrc ./bnf/bnf.txt syntax
     <z>::=<H>   <V>   ''<f>'T'   |'x"''''D' <R>| "'"
 <j> ::=     ""  <t-5>''|<z><O-> "u0"<u><u-->'' 

$ ./randsrc ./bnf/ebnf.txt grammar
c='}';t5={"_"};mI="5_{";V_7="5N_";

license

Apache-2.0

author

theoremoon

About

Generate random sources that derived by a given BNF


Languages

Language:D 100.0%