init
This commit is contained in:
9
bml/test/recursion/_config.bml
Executable file
9
bml/test/recursion/_config.bml
Executable file
@@ -0,0 +1,9 @@
|
||||
LookRoot $testlookroot
|
||||
DefaultScheme scheme
|
||||
DefaultLanguage en
|
||||
|
||||
AllowOldSyntax 0
|
||||
AllowCode 1
|
||||
AllowTemplateCode 1
|
||||
|
||||
|
||||
11
bml/test/recursion/infinite.bml
Executable file
11
bml/test/recursion/infinite.bml
Executable file
@@ -0,0 +1,11 @@
|
||||
Simple infinite recursion:
|
||||
<?rtag Foo rtag?>
|
||||
|
||||
Complex infinite recursion:
|
||||
<?1tag
|
||||
From there to here,
|
||||
from here to there,
|
||||
funny things
|
||||
are everywhere.
|
||||
1tag?>
|
||||
|
||||
6
bml/test/recursion/infinite.correct
Executable file
6
bml/test/recursion/infinite.correct
Executable file
@@ -0,0 +1,6 @@
|
||||
Simple infinite recursion:
|
||||
<b>[Error: Too deep recursion: RTAG -> RTAG -> RTAG -> RTAG -> RTAG -> RTAG -> RTAG -> RTAG -> RTAG -> RTAG -> RTAG]</b>
|
||||
|
||||
Complex infinite recursion:
|
||||
<b>[Error: Too deep recursion: 1TAG -> 2TAG -> REDTAG -> BLUETAG -> 1TAG -> 2TAG -> REDTAG -> BLUETAG -> 1TAG -> 2TAG -> REDTAG]</b>
|
||||
|
||||
1
bml/test/recursion/nested.bml
Executable file
1
bml/test/recursion/nested.bml
Executable file
@@ -0,0 +1 @@
|
||||
<?outer Foo outer?>
|
||||
1
bml/test/recursion/nested.correct
Executable file
1
bml/test/recursion/nested.correct
Executable file
@@ -0,0 +1 @@
|
||||
[outer: [inner: Foo]]
|
||||
7
bml/test/recursion/scheme.look
Executable file
7
bml/test/recursion/scheme.look
Executable file
@@ -0,0 +1,7 @@
|
||||
rtag=>{D}<?rtag %%DATA%% rtag?>
|
||||
outer=>{D}[outer: <?inner %%DATA%% inner?>]
|
||||
inner=>{D}[inner: %%DATA%%]
|
||||
1tag=>{D}<?2tag %%DATA%% 2tag?>
|
||||
2tag=>{D}<?redtag %%DATA%% redtag?>
|
||||
redtag=>{D}<?bluetag %%DATA%% bluetag?>
|
||||
bluetag=>{D}<?1tag %%DATA%% 1tag?>
|
||||
Reference in New Issue
Block a user