Skip to content

Arithmetic expressions language checker: unary multiplication

License

Notifications You must be signed in to change notification settings

SmirnovOleg/bmw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arithmetic Expressions Language Checker

A tool for checking correctness of arithmetic expressions (multiplications) using Type-0 and Type-1 grammars. Currently implemented with unary numeral system.

Usage

You will need only Python 3.8 to run the tool from command line:

python main.py grammar word

  • grammar: could be t0 (to use Recursively enumerable grammar) or t1 (to use Context-sensitive grammar)
  • word: a word to check for correctness, use symbols 1, *, and = without spaces

Examples

  • python main.py t0 1*11=1
  • python main.py t1 111*11=111111

About

Arithmetic expressions language checker: unary multiplication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages