8000 GitHub - angellandros/mike-papa: Mike Papa
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

angellandros/mike-papa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mike-papa build

Mike Papa: Tiny Parser for Bitwise Operators

Usage

Put your code inside a .txt file, e.g. mycode.txt. The code must contain lines of the form:

15 -> a
16 -> b
2 -> d
a OR b -> c
NOT c -> e
e RSHIFT b -> f
f XOR 7 -> g

Then open the file parse.py in an interactive mode, e.g. ipython -i parse.py, then

load('mycode.txt')
parse('f')
parse('g')

About

Mike Papa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0