+ public TokenArray()
+ {
+ this.items = new Gee.ArrayList<Token>();
+ }
+
+ public Token? last() {
+ if (this.tokens > 0) {
+ return this.tokens[this.tokens.length-1];
+ }
+ return null;
+ }
+ public Token? lastSym () {
+ for (var i = this.tokens.length-1; i >= 0; i--) {
+ if (!(this.tokens.get(i).is("WHIT") || this.tokens.get(i).is("COMM"))) {
+ return this.tokens.get(i);
+ }
+ }
+ return null;
+ }
+ public void push (Token t) {
+ this.tokens.add(t);
+ }
+ public Token get(int i) {
+ return this.tokens.get(i);
+ }
+ }
+
+ errordomain TokenReader_Error {
+ ArgumentError
+ }
+
+
+ public class TokenReader : Object