Uses of Class
org.smtlib.IParser.ParserException
Packages that use IParser.ParserException
Package
Description
This package contains the main classes and abstract interfaces for this
SMT-LIB tool; the tool provides a stand-alone SMT-LIB-compliant command-line
application, an application that responds to SMT-LIB commands over a
network port, and an SMT-LIB Java API.
This package contains implementations of the SMT-LIB commands,
implementing the interfaces defined in ICommand;
these implementations are independent of the concrete syntax that might
be used, except that each command object has methods that can parse or print
representations of the command in the standard (or potentially other) concrete syntaxes.
This package contains commands that are extensions to SMT-LIB.
This package is an implementation of the interfaces defined in org.smtlib.
This package is a concrete implementation of a particular concrete syntax for the abstract SMT-LIB semantics.
-
Uses of IParser.ParserException in org.smtlib
Subclasses of IParser.ParserException in org.smtlibModifier and TypeClassDescriptionstatic classAn exception to be thrown if there is an unrecoverable problem scanning the syntaxMethods in org.smtlib that throw IParser.ParserExceptionModifier and TypeMethodDescriptiondefault voidIParser.checkUserId(IExpr.ISymbol id) Checks that a user-defined symbol does not begin with the reserved characters@or.; throws a ParserException if the check fails.booleanIParser.isEOD()Returns true if the parser is at the end of dataIParser.ElementParser.parse()IParser.parseAttribute()Parse an attribute (keyword with optional value), returning null with error messages if an error occurs.IParser.parseAttributeValue()Parses a value for an attribute, returning null with error messages if an error occursIParser.parseBinary()Parse an SMT-LIB binary literal; return null and log an error response if there is no numeralIParser.parseBinding()Parses a binding "(id expression)", returning null with error messages if an error occursIParser.parseBindings()Parses a parenthesized sequence of let-bindings, returning null with error messages if an error occursIParser.parseCommand()Parses an SMT-LIB command, if the parser is looking at text representing a valid SMT-LIB command; returns null and logs errors if the text is not a valid command.IParser.parseConstructor()Parses a constructor declaration "(symbol selector*)"IParser.parseDatatype()Parses a datatype declarationIParser.parseDecimal()Parse an SMT-LIB decimal literal; return null and log an error response if there is no numeralIParser.parseDeclaration()Parses a declaration "(id sort)", returning null with error messages if an error occursIParser.parseDeclarations()Parses a parenthesized sequence of IDeclaration items, returning null with error messages if an error occursIParser.parseExpr()Parses a term or formula; return null and log an error response if there is no term or formulaIParser.parseFunctionDeclaration()Parses a function declaration "(symbol (sorted_var*) sort)" used in define-funs-recIParser.parseHex()Parse an SMT-LIB hex literal; return null and log an error response if there is no numeralIParser.parseIdentifier()Parses an identifier (either a symbol or a parameterized identifier) from the token stream, returning null (with logged error messages) if there is not one.IParser.parseKeyword()Parse an SMT-LIB keyword; return null and log an error response if there is no valid keyworddefault List<ISort.IDatatype> IParser.parseListDatatypes(Parser p) Parses a parenthesized list of datatype declarations from the given parser.IParser.parseListTerms(Parser p) Parses a parenthesized list of terms from the given parser.IParser.parseLiteral()Parse an SMT-LIB literal of any kind; return null and log an error response if there is no literalIParser.parseLogic()Parse an SMT-LIB logic; return null and log an error response if there is no valid logic definitionIParser.parseNumeral()Parse an SMT-LIB numeral; return null and log an error response if there is no numeralIParser.parseQualifiedIdentifier()Parses a qualified identifier (either a symbol, a parameterized identifier, or an as identifier) from the token stream, returning null (with logged error messages) if there is not one.IParser.parseScript()Parses an SMT-LIB command script.IParser.parseSelector()Parses a selector declaration "(symbol sort)"IParser.parseSort(List<ISort.IParameter> parameters) Parses a sort, returning null with error messages if a valid sort is not in the next parser tokens.IParser.parseStringLiteral()Parse an SMT-LIB string literal; return null and log an error response if there is no valid string literalIParser.parseSymbol()Parse an SMT-LIB symbol; return null and log an error response if there is no symbolIParser.parseTheory()Parse an SMT-LIB theory; return null and log an error response if there is no valid theory definition -
Uses of IParser.ParserException in org.smtlib.command
Methods in org.smtlib.command that throw IParser.ParserExceptionModifier and TypeMethodDescriptionstatic C_assertParses the arguments of the command, producing a new command instancestatic C_check_sat_assumingParses the arguments of the command, producing a new command instancestatic C_declare_constParses the arguments of the command, producing a new command instancestatic C_declare_datatypeParses the arguments of the command, producing a new command instancestatic C_declare_datatypesParses the arguments: ( (symbol numeral)+ ) ( datatype_dec+ )static C_declare_funParses the arguments of the command, producing a new command instance.static C_declare_sort_parameterParses the arguments of the command, producing a new command instancestatic C_declare_sortParses the arguments of the command, producing a new command instancestatic C_define_constParses the arguments of the command, producing a new command instancestatic C_define_fun_recParses the command arguments and creates a command instancestatic C_define_funParses the command arguments and creates a command instancestatic C_define_funs_recParses the command arguments and creates a command instancestatic C_define_sortParses the command arguments and creates a command instancestatic C_echoParses the arguments of the command, producing a new command instancestatic C_exitParses the arguments of the command, producing a new command instancestatic C_get_assertionsParses the command, producing a new command instancestatic C_get_assignmentParses the command, producing a new command instancestatic C_get_infoCreates a command instance by parsing the concrete S-expression syntaxstatic C_get_modelParses the command, producing a new command instancestatic C_get_optionCreates a command instance by parsing the concrete S-expression syntaxstatic C_get_proofParses the command, producing a new command instancestatic C_get_unsat_assumptionsParses the command, producing a new command instancestatic C_get_unsat_coreParses the command, producing a new command instancestatic C_get_valueParses the command, producing a new command instancestatic C_popParses the arguments of the command, producing a new command instancestatic C_pushParses the arguments of the command, producing a new command instancestatic C_reset_assertionsParses the arguments of the command, producing a new command instancestatic C_resetParses the arguments of the command, producing a new command instancestatic C_set_infoCreates a command instance by parsing the concrete S-expression syntaxstatic C_set_logicCreates a command instance by parsing the S-expression concrete syntaxstatic C_set_optionCreates a command instance by parsing the concrete S-expression syntax -
Uses of IParser.ParserException in org.smtlib.ext
Methods in org.smtlib.ext that throw IParser.ParserException -
Uses of IParser.ParserException in org.smtlib.impl
Methods in org.smtlib.impl that return IParser.ParserExceptionModifier and TypeMethodDescriptionstatic IParser.ParserExceptionCommand.error(SMT.Configuration smt, String msg, IPos pos) Creates a ParserException with the given message and position. -
Uses of IParser.ParserException in org.smtlib.sexpr
Methods in org.smtlib.sexpr that return IParser.ParserExceptionModifier and TypeMethodDescriptionCreates a ParserException with the given message and position; callers should throw the result.Creates a ParserException from the given message and token; callers should throw the result.Methods in org.smtlib.sexpr that throw IParser.ParserExceptionModifier and TypeMethodDescriptionLexer.getToken()Returns the next lexical token, advancing the scanner.Returns the next lexical token; if the token returned matches the given class (or is a subclass), then the scanner is advanced; if the token does not match, the scanner is not advanced.Returns the first token found in the given textprotected ILexTokenReturns the next token found in the given matcher, advancing the matcherprotected ILexTokenReports a vertical tab or form feed between tokens (except with --relax), which is then read as white space, and a keyword that is not a colon followed by a simple symbol (#185)booleanLexer.isEOD()Returns true if the next token is the end-of-databooleanLexer.isLP()Returns true if the next token is a left parenthesis (without consuming it)booleanLexer.isRP()Returns true if the next token is a right parenthesis (without consuming it)Parser.parseAssertionList()Parses a parenthesized list of terms, as returned by a get-assertions response.Parser.parseAssignmentList()Parses a parenthesized list of(symbol bool)pairs, as returned by a get-assignment response.Parser.parseAssignmentPair()Parses one(symbol bool)pair, as found in a get-assignment response.Parser.parseAttribute()Parse an attribute (keyword with optional value), returning null with error messages if an error occurs.protected IExpr.IAttribute<?> Parser.parseAttributeRest(IExpr.IKeyword keyword) Parses the (optional) value of an attribute whose keyword has already been parsed.List<IExpr.IAttribute<?>> Parser.parseAttributeSequence()Parse a sequence of attributes (keyword with optional value) terminated by a right parenthesis, returning null with error messages if an error occurs.Parser.parseAttributeValue()Parse an attribute (keyword with optional value), returning null with error messages if an error occurs.Parser.parseBinary()Parses a binary literal, returning null with the given message if an error occurs; if the next token is not a binary literal, the token is not consumed,Parser.parseBinding()Parses a binding "(id expression)", returning null with error messages if an error occursParser.parseBindings()Parses a parenthesized sequence of let-bindingsParser.parseConstructor()Parses a constructor declaration "(symbol selector*)"Parser.parseDatatype()Parses a datatype declaration: "( constructor+ )" or "( par ( symbol+ ) ( constructor+ ) )"Parser.parseDecimal()Parses a decimal, returning null with the given message if an error occurs; if the next token is not a decimal, the token is not consumed,Parser.parseDeclaration()Parses a declaration "(id sort)", returning null with error messages if an error occursParser.parseDeclarations()Parses a parenthesized sequence of IDeclaration itemsParser.parseExpr()Parses an expression, returning null with error messages if there is not a valid expression in the token stream.Parser.parseFunctionDeclaration()Parses a function declaration "( symbol ( sorted_var* ) sort )" used in define-funs-recParser.parseHex()Parses a hex literal, returning null with the given message if an error occurs; if the next token is not a hex literal, the token is not consumed,Parser.parseIdentifier()Parses an identifier (either symbol or parameterized identifier) from the token stream, returning null with logged error messages if there is not one.Parser.parseKeyword()Parses a keyword, returning null with an error message if an error occurs; if the next token is not a keyword, the token is not consumed.<T> List<T> Parser.parseList(IParser.ElementParser<T> elementParser, String kind, boolean allowEmpty) Parses a parenthesized list of elements using the given element parser.Parser.parseLiteral()Parses a literal, returning null with error messages if an error occurs.Parser.parseLogic()Parses a logic definition (including beginning and ending parentheses, returning null with error messages if it fails; only part of the checking of the contents is performed in this call (the rest is done in loadLogic).Parser.parseLP()Parses a left parenthesis, returning null and emitting an error message if there isn't one (and the next token is not consumed)Parser.parseMatchCase()Parses a single match case: "(pattern term)"Parser.parseNumeral()Parses a numeral, returning null with error messages if an error occurs; if the next token is not a numeral, the token is not consumed,Parser.parsePattern()Parses a match pattern: either a bare symbol (or wildcard _) or "(symbol symbol*)" where params may include _Parser.parseQualifiedIdentifier()Parses a qualified identifier (either a symbol, a parameterized identifier, or an as identifier) from the token stream, returning null (with logged error messages) if there is not one.Parser.parseResponse(String response) Parser.parseRP()Parses a right parenthesis, returning null and emitting an error message if there isn't one (and the next token is not consumed)Parser.parseSelector()Parses a selector declaration "(symbol sort)"Parses and adds Sexpr to a list until parseSexpr returns null (indicating a RightParen has been seen or end of input or an error)Parser.parseSexpr()Parses an SexprParser.parseSort(List<ISort.IParameter> parameters) Parses a sort, returning null with error messages if a valid sort is not in the next parser tokens.Parser.parseSortList(List<ISort.IParameter> parameters) Parses sequence of sorts up to a right-parenthesis, returning null with error messages if an error occurs.Parser.parseStringLiteral()Parses a string literal, returning null with an error message if an error occurs; if the next token is not a string literal, the token is not consumed,Parser.parseSymbol()Parses a symbol, returning null with messages and not advancing the parser if an error occursParser.parseSymbol(String msg) Parses a symbol (but not a reserved word unless the configuration field 'relax' is true), returning null with messages if an error occurs; the parser is advanced only if an actual symbol is parsed.Parser.parseSymbolList()Parses a parenthesized list of names, as returned by a get-unsat-core response.Parser.parseSymbolOrReservedWord(String msg) Parses a symbol or a reserved word, returning null with messages if an error occurs.List<IExpr.IAttribute<?>> Parser.parseTermAttributeSequence()Parses the attributes of an annotated term(! t attr+)up to the right parenthesis.Parser.parseTermList()Parses a parenthesized list of terms, as returned by a get-unsat-assumptions response.Parser.parseTheory()Parses a theory definition (including beginning and ending parentheses, returning null with error messages if it fails; only part of the checking of the contents is performed in this call (the rest is done in loadTheory).Parser.parseValueList()Parses a parenthesized list of(term value)pairs, as returned by a get-value response.Parser.parseValuePair()Parses one(term value)pair, as found in a get-value response.Lexer.peekToken()Returns the next lexical token without consuming it; a subsequent call to getToken will return the same token.Lexer.skipThruRP()Reads and discards tokens until an unmatched right parenthesis or end-of-data is read