Function clingo::parse_term
source · pub fn parse_term(string: &str) -> Result<Symbol, ClingoError>
Expand description
Parse a term in string form.
The result of this function is a symbol. The input term can contain unevaluated functions, which are evaluated during parsing.
Arguments
string
- the string to parse
Errors
ClingoError::NulError
- ifstring
contains a nul byteClingoError::InternalError
withErrorCode::BadAlloc
orErrorCode::Runtime
if parsing fails