Lines Matching refs:TokenGrammar
21 import lexer.TokenGrammar
76 while (peekPreviousToken(iter)?.identifier == TokenGrammar.EMPTY_LINE) iter.previous() in scanTokens()
78 if (peekPreviousToken(iter)?.identifier == TokenGrammar.DOC_START) iter.previous() in scanTokens()
95 assert(peekToken(iter)!!.identifier == TokenGrammar.DOC_START) in parseTokens()
97 assert(peekPreviousToken(iter)!!.identifier == TokenGrammar.DOC_END) in parseTokens()
100 if (peekToken(iter)?.identifier != TokenGrammar.DOC_START) { in parseTokens()
115 while (iter.hasNext() && peekToken(iter)!!.identifier == TokenGrammar.AT) { in parseTokens()
130 assert(token.identifier != TokenGrammar.AT && token.category != TokenCategory.Annotation) in parseTokens()
136 if (token.identifier == TokenGrammar.DOC_START) { in parseTokens()
138 } else if (token.identifier == TokenGrammar.PACKAGE) { in parseTokens()
151 TokenGrammar.INTERFACE -> { in parseTokens()
155 TokenGrammar.ENUM -> EnumDeclarationParser(iter) in parseTokens()
156 TokenGrammar.TYPEDEF -> TypedefDeclarationParser(iter) in parseTokens()
157 TokenGrammar.STRUCT, TokenGrammar.UNION -> CompoundDeclarationParser(iter) in parseTokens()