Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cope with haxe changes

  • Loading branch information...
commit 43c875ee9dc1d4ec150b9221ce369c61439c3aed 1 parent 334ffa0
@sledorze authored
View
14 src/com/mindrocks/functional/Functional.hx
@@ -35,16 +35,16 @@ class Functionnal {
// such.
class List<T> {
- public var head (getHead, null): T;
- public var tail (getTail, null): List<T>;
+ public var head (get_head, null): T;
+ public var tail (get_tail, null): List<T>;
private var _headV : T;
private var _tailV : List<T>;
- function getHead() : T {
+ function get_head() : T {
return _headV;
}
- function getTail() : List<T> {
+ function get_tail() : List<T> {
return _tailV;
}
@@ -106,7 +106,7 @@ class List<T> {
if (Std.is(l, Nil))
if (r == null)
throw "last called on Nil";
- else return r.getHead()
+ else return r.get_head()
else {
r = l;
l = l.tail;
@@ -128,11 +128,11 @@ class Nil<T> extends List<T> {
override public function isEmpty() {
return true;
}
- override function getHead() : T {
+ override function get_head() : T {
throw "Cannot access head of Nil";
return null;
}
- override function getTail() : List<T> {
+ override function get_tail() : List<T> {
throw "Cannot access tail of Nil";
return null;
}
View
2  src/com/mindrocks/text/Parser.hx
@@ -8,6 +8,7 @@ using com.mindrocks.functional.Functional;
import com.mindrocks.macros.LazyMacro;
using Lambda;
+using com.mindrocks.text.Parser;
/**
* ...
@@ -56,7 +57,6 @@ class ResultObj {
}
}
-using com.mindrocks.text.Parser;
class MemoObj {
Please sign in to comment.
Something went wrong with that request. Please try again.