Permalink
Browse files

rock is self-hosting again o/ uploading a bootstrap-only asap.

  • Loading branch information...
1 parent a179d37 commit 96a8eea537d0d07bc7b18bb72c290d2531a591f2 Amos Wenger committed Feb 13, 2011
@@ -33,7 +33,7 @@ OpType: enum {
and /* && */
}
-opTypeRepr := ["no-op",
+opTypeRepr := [
"+",
"-",
"*",
@@ -15,8 +15,8 @@ CompType: enum {
}
-compTypeRepr := ["no-op",
- "==",
+compTypeRepr := [
+ "==",
"!=",
">",
"<",
@@ -47,6 +47,7 @@ EnumDecl: class extends TypeDecl {
// If no value is provided for a non-extern element,
// calculate it by incrementing the last used value.
if(!element valueSet) {
+ element setValue(lastElementValue)
lastElementValue = match lastElementValue {
case intLit: IntLiteral =>
IntLiteral new(match incrementOper {
@@ -68,7 +69,6 @@ EnumDecl: class extends TypeDecl {
return
null
}
- element setValue(lastElementValue)
} else {
lastElementValue = element getValue()
}
@@ -9,8 +9,8 @@ UnaryOpType: enum {
unaryMinus /* - */
}
-unaryOpRepr := ["no-op",
- "~",
+unaryOpRepr := [
+ "~",
"!",
"-"]

0 comments on commit 96a8eea

Please sign in to comment.