Implement if and ifnot tags

Closes #3
This commit is contained in:
Kyle Fuller
2014-10-26 11:36:55 +00:00
parent 758bf352c1
commit 7b42eb6bec
3 changed files with 133 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ public class TokenParser {
self.tokens = tokens
tags["for"] = ForNode.parse
tags["now"] = NowNode.parse
tags["if"] = IfNode.parse
tags["ifnot"] = IfNode.parse_ifnot
}
public func parse() -> [Node] {