Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Duncan White
C-datadec
Commits
ddcce179
Commit
ddcce179
authored
Jan 07, 1993
by
dcw
Browse files
Null -> Nil; added BEGIN section
parent
aea7d3ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/m2data.in
View file @
ddcce179
...
@@ -6,6 +6,7 @@ PROCEDURE AppendIntList( a, b : IntList ) : IntList;
...
@@ -6,6 +6,7 @@ PROCEDURE AppendIntList( a, b : IntList ) : IntList;
}
}
GLOBAL {
GLOBAL {
FROM BIO IMPORT PutLn;
@@
@@
PROCEDURE AppendIntList( a, b : IntList ) : IntList;
PROCEDURE AppendIntList( a, b : IntList ) : IntList;
...
@@ -14,6 +15,10 @@ BEGIN
...
@@ -14,6 +15,10 @@ BEGIN
END AppendIntList;
END AppendIntList;
}
}
BEGIN {
PutLn( "initialization of m2data complete!" );
}
TYPE {
TYPE {
First = A | B | C | D | E;
First = A | B | C | D | E;
Second = A( int aa );
Second = A( int aa );
...
@@ -22,8 +27,8 @@ Fourth = A | B | C( int cc ) | D | E;
...
@@ -22,8 +27,8 @@ Fourth = A | B | C( int cc ) | D | E;
Fifth = A | B | C( int cc ) | D( string dd ) | E;
Fifth = A | B | C( int cc ) | D( string dd ) | E;
Sixth = A( int aa ) | B | C | D | E;
Sixth = A( int aa ) | B | C | D | E;
IntList = N
ul
l "n
ul
l" | Cons( int first, IntList next ) 1 " , " 2;
IntList = N
i
l "n
i
l" | Cons( int first, IntList next ) 1 " , " 2;
ILList = N
ul
l "n
ul
l" | Cons( IntList first, ILList next ) "[ " 1 " ] , " 2;
ILList = N
i
l "n
i
l" | Cons( IntList first, ILList next ) "[ " 1 " ] , " 2;
IdTree = Leaf( string id, IntList l ) "leaf( '" 1 "', [ " 2 " ] )"
IdTree = Leaf( string id, IntList l ) "leaf( '" 1 "', [ " 2 " ] )"
| Node( IdTree left, IdTree right ) "node( " 1 " , " 2 " )";
| Node( IdTree left, IdTree right ) "node( " 1 " , " 2 " )";
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment