-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(semantical): added methods. (sorry by broken code, my working de…
…vice isnt mine)
- Loading branch information
1 parent
4787189
commit 90422de
Showing
3 changed files
with
32 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef COMMON_TYPES_H | ||
#define COMMON_TYPES_H | ||
#include <string.h> | ||
|
||
#define ISTYPE(typedf, tname) (strcmp(typedf->name, tname) == 0) | ||
|
||
#define ISINT(typedf) ISTYPE(typedf, "int") | ||
#define ISFLOAT(typedf) ISTYPE(typedf, "decimal") | ||
#define ISSTRING(typedf) ISTYPE(typedf, "string") | ||
|
||
|
||
#endif //COMMON_TYPES_H |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
#extern "C" { | ||
#include "frontend/checker/core.h" | ||
#include "frontend/checker/common_types.h" | ||
#include "utils.h" | ||
} | ||
|
||
Checker* init(AstNode* ast) { | ||
|
||
} |