Skip to content

Instantly share code, notes, and snippets.

@kelvingakuo
Created November 19, 2021 12:31
Show Gist options
  • Save kelvingakuo/82a714ab455f28a12643eeda5d1cef84 to your computer and use it in GitHub Desktop.
Save kelvingakuo/82a714ab455f28a12643eeda5d1cef84 to your computer and use it in GitHub Desktop.
def query():
if(accept("SELECT")):
if(columns()):
if(accept("FROM")):
if(name()):
if(terminal(False)):
show_tree(tree)
elif(accept("WHERE")):
if(condition_list()):
if(terminal()):
show_tree(tree)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment