This commit is contained in:
2019-02-06 00:49:12 +03:00
commit 8dbb1bb605
4796 changed files with 506072 additions and 0 deletions

9
bml/test/recursion/_config.bml Executable file
View 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
View 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?>

View 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
View File

@@ -0,0 +1 @@
<?outer Foo outer?>

View File

@@ -0,0 +1 @@
[outer: [inner: Foo]]

7
bml/test/recursion/scheme.look Executable file
View 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?>