Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Hirsch
703602-Compiler-Construction
Commits
de49abc4
Commit
de49abc4
authored
Feb 13, 2020
by
Alexander Hirsch
Browse files
Add dangling_else example
parent
16d8beaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
examples/dangling_else/dangling_else.mc
examples/dangling_else/dangling_else.mc
+12
-0
examples/dangling_else/dangling_else.stdin.txt
examples/dangling_else/dangling_else.stdin.txt
+0
-0
examples/dangling_else/dangling_else.stdout.txt
examples/dangling_else/dangling_else.stdout.txt
+1
-0
No files found.
examples/dangling_else/dangling_else.mc
0 → 100644
View file @
de49abc4
int main()
{
if (true)
if (false)
print("foo");
else
print("bar");
print_nl();
return 0;
}
examples/dangling_else/dangling_else.stdin.txt
0 → 100644
View file @
de49abc4
examples/dangling_else/dangling_else.stdout.txt
0 → 100644
View file @
de49abc4
bar
Write
Preview
Markdown
is supported
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