Class StringValueParser

    • Constructor Detail

      • StringValueParser

        public StringValueParser()
    • Method Detail

      • parse

        public boolean parse​(Source source,
                             Grammar grammar,
                             Broadcaster broadcaster)
        Description copied from interface: Parser
        Parse from the current position of the given source, notifying the given Broadcaster of any applicable events and data.

        Necessary grammar tokens and other parsers should be retrieved from the provided Grammar instance.

        Specified by:
        parse in interface Parser
        Parameters:
        source - The source to parse.
        grammar - The grammar.
        broadcaster - The broadcaster.
        Returns:
        True if we parsed something (excluding whitespace and comments), false otherwise. Note that a return value of true does not indicate that the parsed content was completely valid syntax (unknown for some units until refinement).
        See Also:
        #parse(Source, Grammar, Broadcaster, Boolean)