added void type, added "jackal" invocation wrapper script

git-svn-id: svn://anubis/jackalc/trunk@4 2d0ce1a6-f80c-425e-916c-c881d0336438
This commit is contained in:
josh 2010-09-16 17:56:03 +00:00
parent b4dd8064a3
commit c36cfdcacf
3 changed files with 5 additions and 2 deletions

2
jackal Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec python jackalc.py "$@"

View File

@ -7,8 +7,8 @@ class Node:
pass pass
class BinOpNode(Node): class BinOpNode(Node):
def __init__(self, binop, s1, s2): def __init__(self, op, s1, s2):
self.binop = binop self.op = op
self.s1 = s1 self.s1 = s1
self.s2 = s2 self.s2 = s2

View File

@ -16,6 +16,7 @@ reserved = {
'return': 'RETURN', 'return': 'RETURN',
# types # types
'void': 'VOID',
'byte': 'BYTE', 'byte': 'BYTE',
'short': 'SHORT', 'short': 'SHORT',
'int': 'INT', 'int': 'INT',