Lines Matching refs:scanner
26 * Scanner moves forward only, but can check queued tokens.
33 //pad delimiter tokens so the scanner picks them up.
36 Scanner(paddedStr).use { scanner ->
37 while (scanner.hasNext()) {
38 val token = scanner.next()
42 TokenGrammar.COMMENT_LINE.value -> scanner.nextLine()
46 if (scanner.findWithinHorizon(Regex.escape(TokenGrammar.DOC_END.value), 0) == null) {
58 while (scanner.hasNextLine()) {
59 val line = scanner.nextLine()
82 if (scanner.hasNext(annotation.value)) {
83 scanner.next() //annotation tag
86 if (scanner.hasNext(Regex.escape(TokenGrammar.PAREN_OPEN.value))) {
87 while (!scanner.hasNext(Regex.escape(TokenGrammar.PAREN_CLOSE.value))) {
88 annotationArgs.append(scanner.next()).append(" ")
90 if (!scanner.hasNext()) {
93 annotationArgs.append(scanner.next()) //')'