Wooo! Fixed up remaining bugs in new syntax!

This commit is contained in:
Nathan Braswell
2015-05-09 06:24:56 -04:00
parent acf751c016
commit 87e1853713
47 changed files with 277 additions and 284 deletions

View File

@@ -1,25 +1,25 @@
import io:*;
typedef firstObject {
|int| objectNum;
|int| other;
|void| print() {
var objectNum: int;
var other: int;
fun print(): void {
print(other);
}
|void| printInd() {
fun printInd(): void {
print();
}
};
typedef Int int;
|Int| aliasNum;
var aliasNum: Int;
|int| main() {
|firstObject| wooObject;
fun main(): int {
var wooObject: firstObject;
wooObject.objectNum = 7;
print(wooObject.objectNum);
|firstObject*| objPtr = &wooObject;
var objPtr: firstObject* = &wooObject;
objPtr->objectNum = 42;
print(objPtr->objectNum);
print("\n");