Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/org/rascalmpl/library/lang/json/IO.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ import Exception;
@synopsis{JSON parse errors have more information than general parse errors}
@description{
* `location` is the place where the parsing got stuck (going from left to right).
* `cause` is a factual diagnosis of what was expected at that position, versus what was found.
* `reason` is a factual diagnosis of what was expected at that position, versus what was found.
* `path` is a path query string into the JSON value from the root down to the leaf where the error was detected.
}
@benefits{
* ((NoOffsetParseError)) is for when accurate offset tracking is turned off. Typically this is _on_
even if `trackOrigins=false`, when we call the json parsers from Rascal.
}
data RuntimeException(str cause="", str path="")
data RuntimeException(str reason="", str path="")
= ParseError(loc location)
| NoOffsetParseError(loc location, int line, int column)
;
Expand Down Expand Up @@ -214,4 +214,4 @@ Rascal algebraic combinators.
grammar. It does encode the expected type of the parse result.
* The expected types can only be `data` types, not syntax types.
}
alias JSONParser[&T] = &T (type[&T], str);
alias JSONParser[&T] = &T (type[&T], str);
Loading