-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
172 additions
and
1,256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.vscode | ||
.idea | ||
.idea | ||
a.out.dSYM | ||
a.out.dSYM/Contents/Info.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ int test (void) { | |
} | ||
k = 2 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,11 @@ | ||
/* A program with a missing '{' */ | ||
|
||
void main(void) | ||
{ | ||
int x; | ||
int y; | ||
/* there is a missing { */ | ||
x = 2} | ||
} | ||
|
||
/* This is a program without syntax errors | ||
but with lexical errors */ | ||
/* Error: Type mismatch */ | ||
int program (int u, int v){ | ||
float z; | ||
int z; | ||
float v[4]; | ||
int test; | ||
int l; | ||
float z[4]; | ||
int h; | ||
{ | ||
l = 2 | ||
v[l] = 9 | ||
/* With a comment inside */ | ||
if ( test != 2) test = test + 2 * 4 | ||
else while (z != 7) v[1] = 1 | ||
write a,b; | ||
z[2] = 4 | ||
write z[2] | ||
h = z[2] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* This is a program without syntax errors | ||
but with lexical errors */ | ||
int program (int u, int v){ | ||
float z; | ||
int z; | ||
float v[4]; | ||
int test; | ||
int l; | ||
{ | ||
l = 2 | ||
v[l] = 9 | ||
/* With a comment inside */ | ||
write test | ||
if ( test != 2) test = test + 2 * 4 | ||
|
||
} | ||
} | ||
|
Oops, something went wrong.