completed all keywords and symbols in base language.

created keywords for strings and multiline strings.
This commit is contained in:
Felix Müller 2024-04-15 22:02:53 +02:00
parent 59da185baf
commit d9f959f400
2 changed files with 99 additions and 1 deletions

75
program.gem Normal file
View File

@ -0,0 +1,75 @@
=
:
|
!
+
-
*
/
(
)
[
]
{
}
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

@ -50,6 +50,17 @@
%token OpXor %token OpXor
%token KeyImport
%token KeySilent
%token KeyBox
%token FunTypeof
%token FunSizeof
%token FunFilename
%token FunFunname
%token FunLineno
%token FunExtsupport
%token ValStr
%token ValMultistr
%% %%
@ -79,6 +90,7 @@ decl: '=' {printf("=\n"); };
| '.' {printf(".\n"); }; | '.' {printf(".\n"); };
| ',' {printf(",\n"); }; | ',' {printf(",\n"); };
| ';' {printf(";\n"); }; | ';' {printf(";\n"); };
| '#' {printf("#\n"); };
@ -115,7 +127,18 @@ decl: '=' {printf("=\n"); };
| OpNot {printf("OpNot\n"); }; | OpNot {printf("OpNot\n"); };
| OpXor {printf("OpXor\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"); };
%% %%