Skip to content

lisa-gogo/CGF-toy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CGF-toy

This is A Small Calculator using Context-Free Grammar
It includes +-*/ ( multiplication, Minus, addition , Division)
As for CGS, basic idea is blow :

Start variable is e.
e -> e + t | e-t | t
t -> t x f | t / f | f
f -> (e) | number #bracket

alt text

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages