Skip to content

Instantly share code, notes, and snippets.

View ZeeshanAhmadKhalil's full-sized avatar
🤖
Recklessly Coding in JS..

Zeeshan Ahmad Khalil ZeeshanAhmadKhalil

🤖
Recklessly Coding in JS..
View GitHub Profile
@liyu1981
liyu1981 / parser.py
Created September 24, 2015 06:47
Top-down parser in python
import re
def expression(rbp=0):
global token
t = token
token = next()
left = t.nud()
while rbp < token.lbp:
t = token