Onur
can you give a simple example? I didn't quite understand
BinaryByter
sorry had to eat cake with my grandma
BinaryByter
okay i'M back
BinaryByter
https://github.com/Wittmaxi/Gerlang-3.0/blob/master/src/lexer.h
BinaryByter
this is the so called lexer of my compiler
BinaryByter
it recognizes keywords into characters
BinaryByter
and then evaluates their type
BinaryByter
enum class items{
DELIM, //delimitors like {, (, [
//main function
MAIN_FUNC, //anfang
SCOPE_END, //ende
//function declarations
FUNCTION_1, //funktion
FUNCTION_2, //ergibt
//return statements
RETURN_1, //gebe
RETURN_2, //zurück
//conditional statements
COND, //wenn
//loops
LOOP, //solange
//any identifier
IDENT,
//rvalues
BOOL_RVAL,
CHAR_RVAL,
INT_RVAL,
FLOAT_RVAL,
//variable declarations
VAR_DECL,
NEW_LINE,
VOID //returned in case of nonexistence of token in array
};
BinaryByter
enum class items{
DELIM, //delimitors like {, (, [
//main function
MAIN_FUNC, //anfang
SCOPE_END, //ende
//function declarations
FUNCTION_1, //funktion
FUNCTION_2, //ergibt
//return statements
RETURN_1, //gebe
RETURN_2, //zurück
//conditional statements
COND, //wenn
//loops
LOOP, //solange
//any identifier
IDENT,
//rvalues
BOOL_RVAL,
CHAR_RVAL,
INT_RVAL,
FLOAT_RVAL,
//variable declarations
VAR_DECL,
NEW_LINE,
VOID //returned in case of nonexistence of token in array
};
those are the typs of array
BinaryByter
the syntactic elements are german because the language it lexes is german lol
BinaryByter
hi
Vegeta
https://youtu.be/20fKQMFc6js
BinaryByter
BinaryByter
BinaryByter
Marie
Mat
🤣🤣🤣
Mat
Maxi's revenge
BinaryByter
xD
Mat
3'900 :D
Mat
Or 3,900
Onur
BinaryByter
sure myte :)
BinaryByter
btw:
BinaryByter
clinl needs someone to write a bytecode interpreter
BinaryByter
if you want to try to do that, you coudl try to help em
BinaryByter
😏
Onur
I am not sure that I can do that but if I can I will.
BinaryByter
Heheh
BinaryByter
I was just joking, you aren't forced to do anything
BinaryByter
obviously if you want to, I can add you to the group :)
BinaryByter
to give you some background:
BinaryByter
we are writing a kernel
BinaryByter
and there is a specification that specifies a bytelanguage that shall be used by hardware OEM's to write drivers
klimi
BinaryByter
hm?
you want to write it?
klimi
lol
klimi
i need to make my program 4.6x faster
BinaryByter
BinaryByter
clinl.org
BinaryByter
you will get most of the needed information from that website
BinaryByter
think of a stream like a ship
BinaryByter
when you add somethign to the ship you add to the stream
BinaryByter
flushing the stream means sending the ship to deliver it's cargo
Bader
you literally took the words out of my mouth maxi 😂
BinaryByter
normally you want to only make the ship go when it's at full capacity
BinaryByter
Bader
🤣
BinaryByter
thanks :D
Bader
yup agreed fantastic
Bader
ahhhh
Bader
i hate js but i have to use it :v
BinaryByter
you don't have to
Bader
better than php
BinaryByter
just reload the entire page on hover
Bader
😂
BinaryByter
from the few pages i've seen
BinaryByter
no
BinaryByter
not really
BinaryByter
but i haven't read it
BinaryByter
you decide
BinaryByter
C++ primer
BinaryByter
what?
BinaryByter
that's for C
BinaryByter
https://www.amazon.com/Primer-Plus-6th-Developers-Library/dp/0321776402
BinaryByter
this one is the one you want
BinaryByter
6th edition > 5th edition
BinaryByter
btw:
BinaryByter
for amazon links, you can remove EVERYTHING that follows the ref=
BinaryByter
remove the ref= as well
BinaryByter
that way the link is cleaner
Anonymous
c++ 6 th edition e.balaguruswamy
Anonymous
the e_book send the group
BinaryByter
C+17 is important