Skip to content

Commit 7becb96

Browse files
committed
feat: introduced new fixed size array data type
1 parent 5e17e1c commit 7becb96

File tree

168 files changed

+1558
-422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+1558
-422
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ We welcome contributions and feedback. Please use [GitHub Issues](https://github
151151
```text
152152
==============================================================================================
153153
╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
154-
║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
154+
║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
155155
╩═╝┴└─┘└─┘┘└┘└─┘└─┘
156156
Note: libs - MIT license, runtime/3rd - various
157157
==============================================================================================

compiler/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(UNIX AND NOT APPLE)
4949
list(APPEND SYS_LIBS m dl pthread)
5050
endif()
5151

52-
set(YAKSHA_COMMON_LIBS ${SYS_LIBS} library_yaksha reproc reproc++)
52+
set(YAKSHA_COMMON_LIBS ${SYS_LIBS} library_yaksha reproc++)
5353

5454
# -- yakshac - compiler --
5555
add_executable(yakshac src/comp_main.cpp runtime/whereami.c)
@@ -91,7 +91,6 @@ add_executable(YakshaTests ${YAKSHA_SOURCE_FILES} ${YAKSHA_TEST_FILES} tests/tes
9191
target_compile_definitions(YakshaTests PUBLIC TESTING)
9292
target_link_libraries(YakshaTests PRIVATE Catch2::Catch2)
9393
target_link_libraries(YakshaTests PUBLIC ${SYS_LIBS})
94-
target_link_libraries(YakshaTests PUBLIC reproc)
9594
target_link_libraries(YakshaTests PUBLIC reproc++)
9695
target_compile_features(YakshaTests PRIVATE cxx_std_17)
9796
# Add to CTest
@@ -106,7 +105,6 @@ if(DEFINED ENV{YAKSHA_FUZZ})
106105
add_executable(YakshaFuzz ${YAKSHA_SOURCE_FILES} tests/fuzz_main.cpp runtime/whereami.c)
107106
target_compile_definitions(YakshaFuzz PUBLIC YAKSHA_LLVM_FUZZ)
108107
target_link_libraries(YakshaFuzz PUBLIC ${SYS_LIBS})
109-
target_link_libraries(YakshaFuzz PUBLIC reproc)
110108
target_link_libraries(YakshaFuzz PUBLIC reproc++)
111109
target_compile_features(YakshaFuzz PRIVATE cxx_std_17)
112110
endif()

compiler/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
```text
99
==============================================================================================
1010
╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
11-
║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
11+
║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
1212
╩═╝┴└─┘└─┘┘└┘└─┘└─┘
1313
Note: libs - MIT license, runtime/3rd - various
1414
==============================================================================================

compiler/carpntr/bootstrap_me.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/carpntr/building.yaka

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/carpntr/configuration.yaka

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/carpntr/main.yaka

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/carpntr/raylib_support.yaka

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/hammer/conf.yaka

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/hammer/main.yaka

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/create_struct.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/e2e.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/e2e_files

+2
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,5 @@ test_data/compiler_tests/for_loop_test.yaka
9090
test_data/compiler_tests/auto_casting/autocastboolcount.yaka
9191
test_data/compiler_tests/string_tests/sr_with_const.yaka
9292
test_data/compiler_tests/string_tests/strings_const_mixed_tests.yaka
93+
test_data/compiler_tests/arrays/simple_fixed_arr.yaka
94+
test_data/compiler_tests/arrays/fixed_arr_loop.yaka

compiler/scripts/e2e_snapshot.json

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"test_data/byol/lisp.yaka": "error: FileNotFound\n\nreturn := 255",
77
"test_data/compiler_tests/all_integers.yaka": "\n\nreturn := 0",
88
"test_data/compiler_tests/array_test.yaka": "Printing [a]\n1\n2\n3\n4\n5\n6\n7\nPrinting [b]\nHello\nWorld\nHaha\n\nreturn := 0",
9+
"test_data/compiler_tests/arrays/fixed_arr_loop.yaka": "Fixed Array looping\n\nreturn := 0",
10+
"test_data/compiler_tests/arrays/simple_fixed_arr.yaka": "Creating a fixed array\n6\n\nreturn := 0",
911
"test_data/compiler_tests/arrstack.yaka": "3\n2\n1\n\nreturn := 0",
1012
"test_data/compiler_tests/auto_casting/autocast.yaka": "\"a\" = 1\n\"b\" = 2\n\"c\" = 3\n\"d\" = 6\n\"e\" = 7\n\"f\" = 2\n\"g\" = 6.000000\n\"h\" = 7.000000\n\"i\" = 6.000000\n\"j\" = 1.000000\n\"k\" = 5.000000\n\"l\" = 1\n\"A\" = 10\n\"B\" = 10\n\"C\" = 0\n\nreturn := 0",
1113
"test_data/compiler_tests/auto_casting/autocastboolcount.yaka": "10\n\nreturn := 0",

compiler/scripts/generate_prelude.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/generate_raylib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/ic_tokenizer_order.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/ic_update_ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/ic_update_tokens.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/kabaraya.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/libdocs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/output_tester.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

compiler/scripts/release.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ==============================================================================================
22
# ╦ ┬┌─┐┌─┐┌┐┌┌─┐┌─┐ Yaksha Programming Language
3-
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + exta terms. Please see below.
3+
# ║ ││ ├┤ │││└─┐├┤ is Licensed with GPLv3 + extra terms. Please see below.
44
# ╩═╝┴└─┘└─┘┘└┘└─┘└─┘
55
# Note: libs - MIT license, runtime/3rd - various
66
# ==============================================================================================

0 commit comments

Comments
 (0)