New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mangled Recursive Descent Parser #8

Closed
wants to merge 45 commits into
base: master
from
Commits
Jump to file or symbol
Failed to load files and symbols.
+13 −2
Diff settings

Always

Just for now

View
15 calc.py
@@ -1,2 +1,13 @@
import sys
print(eval(sys.argv[1]))
def ___(______, _______, ________):
_____=list(map(lambda _:_[1],list(map(lambda _:(globals()['__'](),eval(str(______)+_+str(eval(_______)))),list(filter(lambda __:__==globals()['_'](), ________))))))
return ___(sum(_____),_______,________) if _____ else ______
def ____():
_______=globals()['_']();_____=list(map(lambda _:(globals()['__'](),eval(_+str(____()))),filter(lambda _:_==_______,'+-')))
if _____:return sum(map(lambda _:_[1],_____))
_________,________=(lambda _:(globals()['__'](),float(_.group(0)))if _ else (_,_))(__import__('re').match(r'[\d.]+', _______))
if ________:return ________
return(globals()['__'](),___(___(____(),'____()','*/'),'___(____(), "____()","*/")','+-'),(None() if globals()['_']()!=')'else globals()['__']()))[1]if _______=='(' else None()
_________,__________=dict(_=None),dict(_=(lambda _:__import__('re').findall('([\d.]+|[-+*/()])',_))(__import__('sys').argv[1]))
_,__=(lambda:_________['_'],lambda:_________.update({'_':'_'})if not __________['_'] else (_________.update({'_': __________['_'][0]}),__________.update({'_':(__________['_'][1:])})))
__(); ______ = ___(___(____(), '____()', '*/'), '___(____(), "____()", "*/")', '+-')
print(______)if _()=='_' else None()