Skip to content

BerniSc/SimpleParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Parser

A small Project to explore the Boost::qi::spirit and boost::phoenix parser lib and get into how a simple AST Parser works.
This example implements a small calculator and its syntax as an EBNF.


It's grammer consists of the following EBNF:

EBNF of this Grammar:
      varname = "A" .. "z" , { <alphanumeric> }
      start = (varname, ("=" | "+=" | "-=" | "*=" | "/=") , term) | term
      term = product, ("+" | "-"), term | product
      product = (factor, ("*" | "/" | "^" | "&&" | "||") , product) | (factor)
      factor = group | varname | double-number
      group = "(", term, ")"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published