summaryrefslogtreecommitdiff
path: root/src/sys/include/np
AgeCommit message (Collapse)Author
6 daysnp: codegen: Deprecate AST in favor of stackgenIan Moffett
Deprecate the usage of abstract syntax treats in favor of the much saner stack machines + IR usage Signed-off-by: Ian Moffett <ian@osmora.org>
6 daysnp: codegen: Implement initial stack based codegenIan Moffett
This commit introduces the groundwork for the AMD64 PIIR backend. We will not follow through with the plans of using abstract syntax trees as they'll overly complicate the project. Instead we'll utilize a ring buffer to store the list of instructions and a stack machine for the IR code. Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: np: Add initial IR engine (PIIR)Ian Moffett
This commit introduces the initial sources for the intermediate representation (IR) engine [called PIIR (PI-IR)] to PIRHO PIIR: [NOUN]: border, boundary, frontier Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysnp: parse: Create proc AST, handle end/begin, ...Ian Moffett
This commit introduces AST object types and AST integer type definitions. We also now keep track of how deep we are in begin/end tags. - Introduce parsing for TT_BEGIN - Introduce parsing for TT_END Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysnp: lex: Add LEX_EOF defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysnp: Add signed integer typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysnp: parse: Parse procedure signatureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysnp: lex: Add the rest of the UINT tokensIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 daysnp: parse: Add AST structure and initial logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Add TT_NONE token for invalid typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: Allocate memory for identifierIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Detect colon (':')Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Add left/right bracket tokensIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Handle digits in the streamIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayslex: np: Add lexer arithmetic operatorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Detect '*' token (TT_STAR)Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Annotate token typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: parse: Add initial parsing logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Parse identifiers and commasIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysnp: lex: Use foward declaration of np_workIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: Add initial pirho compiler sourcesIan Moffett
The pirho compiler is a ring-0 compiler used to compile core parts of the kernel during updates and installs from the initramfs. Signed-off-by: Ian Moffett <ian@osmora.org>