Implementing Alts
This commit is contained in:
4
examples/alt-sequence-syntax/main.hank
Normal file
4
examples/alt-sequence-syntax/main.hank
Normal file
@@ -0,0 +1,4 @@
|
||||
- (sequence_example) {once: one|two} {sequence: | |three|four|-> cycle_example}
|
||||
-> sequence_example
|
||||
- (cycle_example) {cycle: one|two |three|four}
|
||||
-> cycle_example
|
||||
20
examples/alt-sequence-syntax/partialtest1.hlog
Normal file
20
examples/alt-sequence-syntax/partialtest1.hlog
Normal file
@@ -0,0 +1,20 @@
|
||||
one
|
||||
two
|
||||
three
|
||||
four
|
||||
one
|
||||
two
|
||||
three
|
||||
four
|
||||
one
|
||||
two
|
||||
three
|
||||
four
|
||||
one
|
||||
two
|
||||
three
|
||||
four
|
||||
one
|
||||
two
|
||||
three
|
||||
four
|
||||
@@ -1,6 +1,6 @@
|
||||
First output. 1 1 0 1
|
||||
Second output. 1 1 1 1
|
||||
1 1 1 2
|
||||
1 1 1 2
|
||||
Third output.
|
||||
Fourth output.
|
||||
Fifth output.
|
||||
|
||||
Reference in New Issue
Block a user