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:
parent
b4dd8064a3
commit
c36cfdcacf
4
nodes.py
4
nodes.py
@ -7,8 +7,8 @@ class Node:
|
||||
pass
|
||||
|
||||
class BinOpNode(Node):
|
||||
def __init__(self, binop, s1, s2):
|
||||
self.binop = binop
|
||||
def __init__(self, op, s1, s2):
|
||||
self.op = op
|
||||
self.s1 = s1
|
||||
self.s2 = s2
|
||||
|
||||
|
@ -16,6 +16,7 @@ reserved = {
|
||||
'return': 'RETURN',
|
||||
|
||||
# types
|
||||
'void': 'VOID',
|
||||
'byte': 'BYTE',
|
||||
'short': 'SHORT',
|
||||
'int': 'INT',
|
||||
|
Loading…
x
Reference in New Issue
Block a user