Skip to content

Instantly share code, notes, and snippets.

@pudquick
Last active December 16, 2015 10:39
Show Gist options
  • Select an option

  • Save pudquick/5422111 to your computer and use it in GitHub Desktop.

Select an option

Save pudquick/5422111 to your computer and use it in GitHub Desktop.
typemap = [(["FUNC"], funcdef, []), (["PROC"], procdef, []), (varTypes, vardef, [sym[1]])]
for typeset, typefunc, typearg in typemap:
if sym[0] in typeset:
nextsym()
typefunc(*([defScope] + typearg))
break
else: error("type specifier")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment