mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
unboxed -> val, boxed -> box
This commit is contained in:
parent
919cda5556
commit
5ae88f820d
8 changed files with 16 additions and 16 deletions
|
|
@ -198,13 +198,13 @@ fun createResult () {
|
|||
fun k (x) {
|
||||
if log then printf ("Result: %s\n", x.string) fi;
|
||||
case x of
|
||||
Succ (val, s) ->
|
||||
Succ (v, s) ->
|
||||
if log then printf ("Result stream: %s\n", showMatcher (s)) fi;
|
||||
if deref (hasValue)
|
||||
then failure (sprintf ("Ostap: ambiguous parsing (%s vs. %s)", deref (value).string, val.string))
|
||||
then failure (sprintf ("Ostap: ambiguous parsing (%s vs. %s)", deref (value).string, v.string))
|
||||
else
|
||||
hasValue ::= true;
|
||||
value ::= val
|
||||
value ::= v
|
||||
fi
|
||||
| Fail (err, l, c) ->
|
||||
if deref (hasError)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue