Class HelixReplParser

java.lang.Object
com.helix.cli.repl.HelixReplParser
All Implemented Interfaces:
org.jline.reader.Parser

public class HelixReplParser extends Object implements org.jline.reader.Parser
JLine 3 Parser for the Helix REPL supporting multiline expression editing. Detects unclosed parentheses, unterminated strings, and trailing operators, seamlessly prompting for continuation lines.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jline.reader.Parser

    org.jline.reader.Parser.ParseContext
  • Field Summary

    Fields inherited from interface org.jline.reader.Parser

    REGEX_COMMAND, REGEX_VARIABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jline.reader.ParsedLine
    parse(String line, int cursor, org.jline.reader.Parser.ParseContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jline.reader.Parser

    getCommand, getVariable, isEscapeChar, parse, validCommandName, validVariableName
  • Constructor Details

    • HelixReplParser

      public HelixReplParser()
  • Method Details

    • parse

      public org.jline.reader.ParsedLine parse(String line, int cursor, org.jline.reader.Parser.ParseContext context) throws org.jline.reader.EOFError
      Specified by:
      parse in interface org.jline.reader.Parser
      Throws:
      org.jline.reader.EOFError