You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
367 B
12 lines
367 B
property HasNext
|
|
prefix "Iterator"
|
|
prefix "List"
|
|
prefix "Scanner"
|
|
start -> start: *
|
|
start -> invalid: I = iterator(*)
|
|
start -> invalid: Scanner(I, *) // For constructors, biabduction has "this" as first argument
|
|
invalid -> valid: B = hasNext(i) if B != 0 // in SIL, "true" is encoded as "not 0"
|
|
valid -> invalid: next(i)
|
|
invalid -> error: next(i)
|
|
|