1 package org.codehaus.groovy.syntax; 2 3 48 49 50 54 55 public interface TokenStream 56 { 57 61 76 77 Token la() throws ReadException, SyntaxException; 78 79 80 91 92 Token la(int k) throws ReadException, SyntaxException; 93 94 95 106 107 Token consume(int type) throws ReadException, SyntaxException; 108 109 110 113 114 String getSourceLocator(); 115 116 117 120 121 void checkpoint(); 122 123 124 127 128 void restore(); 129 130 131 135 136 boolean atEnd( boolean ignoringWhitespace ); 137 138 139 140 143 144 boolean atEnd( ); 145 146 } 147 | Popular Tags |