Skip to content

Commit

Permalink
Start of code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wild-Queue committed May 1, 2023
1 parent 04cab2a commit 47907fa
Show file tree
Hide file tree
Showing 16 changed files with 3,144 additions and 475 deletions.
47 changes: 46 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
{
"files.associations": {
"ostream": "cpp"
"ostream": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"cinttypes": "cpp",
"typeinfo": "cpp"
}
}
Binary file added Analyser
Binary file not shown.
2 changes: 1 addition & 1 deletion Analyser.tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
void yyerror(std::string s) {
cout << "Syntax Error in the line " << line_no << endl;
//cerr << s << ", line " << yylineno << endl;
exit(0);
exit(1);
};

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion Analyser.y
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
void yyerror(std::string s) {
cout << "Syntax Error in the line " << line_no << endl;
//cerr << s << ", line " << yylineno << endl;
exit(0);
exit(1);
};

typedef struct {
Expand Down
Loading

0 comments on commit 47907fa

Please sign in to comment.