Class Lexer


  • public final class Lexer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
      private @NotNull java.util.List<char[]> input  
      private boolean inRuleDefinition  
      private int listIndex  
      private static java.util.logging.Logger LOGGER  
      private boolean parsingRaw  
    • Constructor Summary

      Constructors 
      Constructor Description
      Lexer​(@NotNull java.util.List<char[]> input)  
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • input

        @NotNull
        private final @NotNull java.util.List<char[]> input
      • listIndex

        private int listIndex
      • index

        private int index
      • inRuleDefinition

        private boolean inRuleDefinition
      • parsingRaw

        private boolean parsingRaw
    • Constructor Detail

      • Lexer

        public Lexer​(@NotNull
                     @NotNull java.util.List<char[]> input)
    • Method Detail

      • nextToken

        @NotNull
        public @NotNull Token nextToken()
      • isEof

        private boolean isEof()
      • consumeWhiteSpace

        private void consumeWhiteSpace()
      • isIdentifierCharStart

        private boolean isIdentifierCharStart​(char c)
      • isIdentifierChar

        private boolean isIdentifierChar​(char c)
      • readIdentifier

        @NotNull
        private @NotNull java.lang.String readIdentifier()
      • readWhile

        @NotNull
        private @NotNull java.lang.String readWhile​(@NotNull
                                                    @NotNull java.util.function.Predicate<java.lang.Character> filter)
      • current

        private char current()
      • peekNext

        private char peekNext()
      • next

        private void next()