-
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
1 parent
c006a03
commit c5f8c30
Showing
3 changed files
with
20 additions
and
1 deletion.
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
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,4 +1,4 @@ | ||
%baseclass-preinclude <iostream> | ||
%baseclass-preinclude "semantics.h" | ||
%lsp-needed | ||
|
||
%token NATURAL; | ||
|
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 @@ | ||
#include <iostream> | ||
#include <string> | ||
#include <map> | ||
|
||
enum type {natural, boolean}; | ||
|
||
|
||
struct var_data | ||
{ | ||
int decl_row; | ||
type var_type; | ||
var_data(int id,type tp){ | ||
decl_row = id; | ||
var_type = tp; | ||
}; | ||
var_data(){}; | ||
}; | ||
|