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
|
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
|
||||||
|
|
||||||
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user