Switched to bigint in lexer

This commit is contained in:
Krzosa Karol
2022-06-06 10:00:53 +02:00
parent 960523b443
commit 4f876a36a4
4 changed files with 46 additions and 17 deletions

View File

@@ -32,7 +32,6 @@ For now I don't thing it should be overloadable.
-------------------------------------------------------------------------------
@todo
[ ] - Converting from U64 token to S64 Atom introduces unnanounced error (negates) - probably need big int
[ ] - Passing down program to compile through command line
[ ] - More for loop variations
[ ] - Write up on order independent declarations
@@ -65,6 +64,7 @@ For now I don't thing it should be overloadable.
[x] - More basic types
[x] - Implementing required operations int128
[x] - Add basic support for floats
[x] - Converting from U64 token to S64 Atom introduces unnanounced error (negates) - probably need big int
[x] - Add basic setup for new type system
[x] - Access through struct names to constants Arena.CONSTANT
[x] - Enums
@@ -93,9 +93,9 @@ For now I don't thing it should be overloadable.
#include "base.cpp"
#include "base_unicode.cpp"
#include "big_int_c3.cpp"
#include "new_lex.cpp"
#include "types.h"
#include "big_int_c3.cpp"
// #include "big_int.cpp"
#include "new_ast.cpp"
#include "new_parse.cpp"
@@ -120,7 +120,6 @@ int main(){
String result = {};
#if 0
#endif
result = compile_file("globals.kl"_s);
printf("%s", result.str);
result = compile_file("enums.kl"_s);
@@ -131,6 +130,7 @@ int main(){
printf("%s", result.str);
result = compile_file("lambdas.kl"_s);
printf("%s", result.str);
#endif
result = compile_file("new_types.kl"_s);
printf("%s", result.str);