Lines Matching refs:TokenGrammar
20 import lexer.TokenGrammar
34 while (iter.hasNext() && peekToken(iter)?.identifier == TokenGrammar.EMPTY_LINE) {
56 while (peekPreviousToken(iter)?.identifier == TokenGrammar.EMPTY_LINE) iter.previous() in parseTokens()
59 if (peekPreviousToken(iter)?.identifier == TokenGrammar.DOC_START) iter.previous() in parseTokens()
61 if (peekToken(iter)!!.identifier != TokenGrammar.DOC_START) in parseTokens()
69 if (token.identifier == TokenGrammar.DOC_END) { in parseTokens()
71 } else if (token.identifier == TokenGrammar.DOC_START) { in parseTokens()
76 if (peekPreviousToken(iter)?.identifier != TokenGrammar.DOC_END) { in parseTokens()
95 if (token.identifier == TokenGrammar.DOC_START) { in scanDeclarationTokens()
97 } else if (token.identifier == TokenGrammar.DOC_END) { in scanDeclarationTokens()
103 } else if (token.identifier == TokenGrammar.BRACE_OPEN) { in scanDeclarationTokens()
105 } else if (token.identifier == TokenGrammar.BRACE_CLOSE) { in scanDeclarationTokens()
107 } else if (token.identifier == TokenGrammar.SEMICOLON && nestLevel == 0) { in scanDeclarationTokens()
111 assert(tokens.last().identifier == TokenGrammar.SEMICOLON) in scanDeclarationTokens()