Package com.helix.cli.repl
Class HelixReplParser
java.lang.Object
com.helix.cli.repl.HelixReplParser
- All Implemented Interfaces:
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 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
parsein interfaceorg.jline.reader.Parser- Throws:
org.jline.reader.EOFError
-