deleted test code and files

This commit is contained in:
Felix Müller 2024-04-15 22:11:20 +02:00
parent 866d3d03c1
commit 0740dcc237
3 changed files with 1 additions and 164 deletions

View File

@ -1,75 +0,0 @@
=
:
|
!
+
-
*
/
(
)
[
]
{
}
dsafsdgvvgxc
543564765
int
float
as
short
long
half
double
signed
unsigned
ref
type
local
global
static
if
else
while
in
out
fun
,
;
==
&&
||
!!
^^
&
|
^
!
.
import
silent
box
#
typeof
sizeof
filename
funname
lineno
extsupport
"fdsdfsdfsdfsdf"
"test"
"""gsdffgsdfgdf \
dasad"""
""""""

View File

@ -1,13 +1,6 @@
#include <yacc/parser.tab.h>
#include <stdio.h>
extern FILE* yyin;
int main() {
FILE* input = fopen("program.gem", "r");
yyin = input;
yyparse();
return 0;
}

View File

@ -1,12 +1,9 @@
%{
#include <stdio.h>
extern int yylineno;
int yyerror(char*);
extern int yylex();
int array[256];
%}
%union {
@ -64,87 +61,9 @@
%%
program: decllist;
decllist: decl
| decllist decl;
decl: '=' {printf("=\n"); };
| ':' {printf(":\n"); };
| '|' {printf("|\n"); };
| '(' {printf("(\n"); };
| ')' {printf(")\n"); };
| '[' {printf("[\n"); };
| ']' {printf("]\n"); };
| '{' {printf("{\n"); };
| '}' {printf("}\n"); };
| '!' {printf("!\n"); };
| '+' {printf("+\n"); };
| '-' {printf("-\n"); };
| '*' {printf("*\n"); };
| '/' {printf("/\n"); };
| '&' {printf("&\n"); };
| '^' {printf("^\n"); };
| '.' {printf(".\n"); };
| ',' {printf(",\n"); };
| ';' {printf(";\n"); };
| '#' {printf("#\n"); };
| Ident {printf("Ident\n"); };
| ValInt {printf("ValInt\n"); };
| KeyInt {printf("KeyInt\n"); };
| KeyFloat {printf("KeyFloat\n"); };
| KeyAs {printf("KeyAs\n"); };
| KeyShort {printf("KeyShort\n"); };
| KeyLong {printf("KeyLong\n"); };
| KeyHalf {printf("KeyHalf\n"); };
| KeyDouble {printf("KeyDouble\n"); };
| KeySigned {printf("KeySigned\n"); };
| Keyunsigned {printf("Keyunsigned\n"); };
| KeyRef {printf("KeyRef\n"); };
| KeyType {printf("KeyType\n"); };
| KeyLocal {printf("KeyLocal\n"); };
| KeyGlobal {printf("KeyGlobal\n"); };
| KeyStatic {printf("KeyStatic\n"); };
| KeyIf {printf("KeyIf\n"); };
| KeyElse {printf("KeyElse\n"); };
| KeyWhile {printf("KeyWhile\n"); };
| KeyIn {printf("KeyIn\n"); };
| KeyOut {printf("KeyOut\n"); };
| KeyFun {printf("KeyFun\n"); };
| OpEquals {printf("OpEquals\n"); };
| OpAnd {printf("OpAnd\n"); };
| OpOr {printf("OpOr\n"); };
| OpNot {printf("OpNot\n"); };
| OpXor {printf("OpXor\n"); };
| KeyImport {printf("KeyImport\n"); };
| KeySilent {printf("KeySilent\n"); };
| KeyBox {printf("KeyBox\n"); };
| FunTypeof {printf("FunTypeof\n"); };
| FunSizeof {printf("FunSizeof\n"); };
| FunFilename {printf("FunFilename\n"); };
| FunLineno {printf("FunLineno\n"); };
| FunExtsupport {printf("FunExtsupport\n"); };
| FunFunname {printf("FunFunname\n"); };
| ValStr {printf("ValStr\n"); };
| ValMultistr {printf("ValMultistr\n"); };
program: ;
%%
int yyerror(char *s) {
return 0;
}