Path: Compilers : EBNF :
Path: EBNF :
Path: Natural Language : EBNF :

E-BNF Compiler Compiler Compiler Compiler for Extended BNF...

This software reads a grammer file. The grammer file is used to create a C++ recursive
decent context sensitive parser. EBNF stands for extended Backus-Naur form.

If you want the source code for the E-BNF compiler please fill out the request form.

  ebnf.exe - E-BNF compiler compiler written in C++ and compiled for win32
  flex.exe - fast lexical annalizer builder for C/C++
  ebnf.jar - E-BNF compiler compiler wirtten in Java
  jflex.tar.gz - fast lexical analizer for Java
  jflex.zip - fast lexical analizer for Java

How to Run E-BNF on Windows:

  test.ebnf - test grammar file
  input.txt - test input file

(you will need flex and a C++ compiler)
C:\ebnf> ebnf test.ebnf test.cpp -event
C:\ebnf> ebnf test.ebnf test.cpp -model
C:\ebnf> flex lexer.l
C:\ebnf> c++ lex.yy.c test.cpp -o test.exe -static
C:\ebnf> strip test.exe
C:\ebnf> test input.txt
Generated C++ Parser

  main.cpp - parser main entry point in C++
  parser.h - parser class declaration
  test.cpp - parser class definition
  lexer.l - generated flex lexical analyzer
  lex.yy.c - generated lexical analyzer C source code
  test.exe - the generated test program as a win32 exe file

Download File

  ebnf.zip - E-BNF compiler compiler download archive

Parser Output
55.5
Grammer Library:

  english.ebnf - grammer for the eninglish language
  c.ebnf - grammer for the C programming language
  c++.ebnf - grammer for the C++ programming language
  java.ebnf - grammer for the Java programming language
  javascript.ebnf - grammer for the JavaScript programming language
  perl.ebnf - grammer for the Perl programming language
  basic.ebnf - grammer for the BASIC programming language
  ada.ebnf - grammer for the Ada programming language
  pascal.ebnf - grammer for the Pascal programming language
  lisp.ebnf - grammer for the LISP programming language
  prolog.ebnf - grammer for the Prolog programming language
  ebnf.ebnf - grammer for the E-BNF
  sql.ebnf - grammer for SQL
  xml.ebnf - grammer for XML
  xml-dtd.ebnf - grammer for XML DTD file
  html.ebnf - grammer for HTML web page
  cmd.ebnf - grammer for the windows command shell