Skip to content

Instantly share code, notes, and snippets.

@pudquick
Last active December 16, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pudquick/5422111 to your computer and use it in GitHub Desktop.
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