Skip to content

Commit b3feccf

Browse files
Add YueScript as an additional scripting language (#2743)
* Publish Code * Fixed YueScript build. * Disabled macro feature which crashes runtime. * Update YueScript submodule * Try to fix the "function TIC()..." isn't found bug, no luck so far... * Fix Demo and Mark * Format yue.cpp * Make it work in C99, let's hope this compiles in Win XP et cetera * Fix Compilation Issues * Try fixing rpi-baremetal(4) and nintendo-3ds builds * Try fixing linking * Reenable Exceptions * Override YueParser * Try forcing newer glibc? * Debugging Build Step * Update YueScript version * Simplify build * Add yue.cpp * Whoops * Update YueScript * Update circle.patch to try to fix the build error * Try removing -lstdc++fs * Modify Patch * Revert Update circle.patch * ??? * Forgot to git Apply * Accidentally put it in macOS instead of N3DS * Remove platform specific configurations for now * Remove thread_local for N3DS Build * Use a more reliable way to disable thread_local on N3DS * Forgot to pass in initial-exec * Remove build/yuescript-makefile-remove-stdc++fs.patch * Include libyuescript in the baremetal Makefile --------- Co-authored-by: Li Jin <[email protected]>
1 parent 0876efa commit b3feccf

File tree

16 files changed

+505
-2
lines changed

16 files changed

+505
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,12 @@ jobs:
499499
cd build
500500
emcmake cmake -DBUILD_SDLGPU=On -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_LUA=OFF -DBUILD_WITH_MOON=ON -DTIC80_TARGET=tic80moon .. --fresh
501501
cmake --build . --parallel
502+
503+
- name: Build yue
504+
run: |
505+
cd build
506+
emcmake cmake -DBUILD_SDLGPU=On -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_LUA=OFF -DBUILD_WITH_YUE=ON -DTIC80_TARGET=tic80yue .. --fresh
507+
cmake --build . --parallel
502508
503509
- name: Build fennel
504510
run: |

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
path = vendor/pocketpy
8383
url = https://github.com/pocketpy/pocketpy.git
8484
shallow = true
85+
[submodule "vendor/yuescript"]
86+
path = vendor/yuescript
87+
url = https://github.com/IppClub/YueScript.git
88+
shallow = true
8589
[submodule "vendor/lpeg"]
8690
path = vendor/lpeg
8791
url = https://github.com/roberto-ieru/LPeg.git

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ include(cmake/tools.cmake)
157157

158158
include(cmake/lua.cmake)
159159
include(cmake/moon.cmake)
160+
include(cmake/yue.cmake)
160161
include(cmake/fennel.cmake)
161162
include(cmake/wren.cmake)
162163
include(cmake/mruby.cmake)

assets.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ build\bin\prj2cart demos\sfx.lua build\sfx.tic
2121
build\bin\prj2cart demos\squirreldemo.nut build\squirreldemo.tic
2222
build\bin\prj2cart demos\tetris.lua build\tetris.tic
2323
build\bin\prj2cart demos\wrendemo.wren build\wrendemo.tic
24+
build\bin\prj2cart demos\yuedemo.yue build\yuedemo.tic
2425

2526
build\bin\wasmp2cart demos\wasm\wasmdemo.wasmp build\wasmdemo.tic --binary demos\wasm\wasmdemo.wasm
2627
build\bin\wasmp2cart demos\bunny\wasmmark\wasmmark.wasmp build\wasmmark.tic --binary demos\bunny\wasmmark\wasmmark.wasm
@@ -34,6 +35,7 @@ build\bin\prj2cart demos\bunny\rubymark.rb build\rubymark.tic
3435
build\bin\prj2cart demos\bunny\schememark.scm build\schememark.tic
3536
build\bin\prj2cart demos\bunny\squirrelmark.nut build\squirrelmark.tic
3637
build\bin\prj2cart demos\bunny\wrenmark.wren build\wrenmark.tic
38+
build\bin\prj2cart demos\bunny\yuemark.yue build\yuemark.tic
3739

3840
build\bin\bin2txt build\config.tic build\assets\config.tic.dat -z
3941
build\bin\bin2txt build\luademo.tic build\assets\luademo.tic.dat -z
@@ -69,5 +71,7 @@ build\bin\bin2txt build\squirrelmark.tic build\assets\squirrelmark.tic.dat -z
6971
build\bin\bin2txt build\wasmmark.tic build\assets\wasmmark.tic.dat -z
7072
build\bin\bin2txt build\wrenmark.tic build\assets\wrenmark.tic.dat -z
7173
build\bin\bin2txt build\wasmdemo.tic build\assets\wasmdemo.tic.dat -z
74+
build\bin\bin2txt build\yuedemo.tic build\assets\yuedemo.tic.dat -z
75+
build\bin\bin2txt build\yuemark.tic build\assets\yuemark.tic.dat -z
7276

7377
build\bin\bin2txt build\cart.png build\assets\cart.png.dat

build/assets/yuedemo.tic.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0x78, 0xda, 0xed, 0x52, 0xcd, 0x4a, 0xc3, 0x40, 0x10, 0xde, 0xfa, 0x73, 0xc8, 0x1e, 0x04, 0xdf, 0x60, 0x14, 0x04, 0x7f, 0x52, 0x4d, 0xda, 0x22, 0x5a, 0x88, 0x17, 0x15, 0x2c, 0x54, 0x0a, 0x52, 0xf0, 0x9c, 0xc6, 0xb5, 0x5d, 0x8c, 0x49, 0x49, 0xb6, 0xb5, 0x79, 0x83, 0x1c, 0x7c, 0x08, 0x8f, 0x12, 0xf2, 0x10, 0x7b, 0x96, 0xa5, 0x4f, 0x52, 0xf2, 0x0c, 0xce, 0xc6, 0x5a, 0x7a, 0x10, 0x3d, 0x78, 0xf0, 0xe2, 0x6c, 0x86, 0xdd, 0xef, 0x9b, 0xf9, 0x76, 0x16, 0xbe, 0x6c, 0x12, 0x42, 0x2a, 0x2f, 0x2b, 0xe4, 0xa7, 0x98, 0x2a, 0x8c, 0x34, 0x4d, 0xf3, 0x2c, 0xcb, 0x72, 0xbd, 0x23, 0xcc, 0x95, 0x5c, 0xa4, 0x52, 0xb3, 0x22, 0x4d, 0x55, 0x91, 0x65, 0xb2, 0x48, 0x5f, 0x65, 0xa1, 0x72, 0xa9, 0x64, 0x2e, 0xe5, 0x67, 0x7e, 0xad, 0x57, 0xdf, 0xea, 0xd5, 0x92, 0x9e, 0xfc, 0xc7, 0x9f, 0x46, 0xe9, 0x95, 0xf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xc3, 0x9e, 0xeb, 0x43, 0xb7, 0x75, 0xee, 0x54, 0xcf, 0xa8, 0xc1, 0xef, 0xa1, 0x27, 0x02, 0xb0, 0xa8, 0x61, 0x24, 0x55, 0xc7, 0x5e, 0x10, 0xb6, 0x26, 0x0e, 0x96, 0x88, 0x1a, 0x12, 0x93, 0xe5, 0x8e, 0xba, 0x26, 0x74, 0x07, 0x35, 0x3c, 0x3f, 0x06, 0x1b, 0x71, 0x3c, 0x8c, 0xc0, 0x3e, 0xd8, 0x15, 0x3b, 0xc7, 0xd6, 0xde, 0xd1, 0x51, 0xdd, 0xda, 0xaf, 0x99, 0x13, 0x33, 0x31, 0xed, 0x86, 0x59, 0x37, 0x2d, 0x5c, 0x35, 0x13, 0x6f, 0x19, 0x46, 0x3c, 0x10, 0xb0, 0x7d, 0x75, 0xd9, 0x6e, 0x77, 0xe0, 0xb6, 0x73, 0xd3, 0xbe, 0xd8, 0xda, 0x36, 0x4f, 0x1a, 0xf8, 0x51, 0x43, 0xe8, 0xfb, 0xde, 0x01, 0x2b, 0x07, 0x25, 0xd7,

build/assets/yuemark.tic.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0x78, 0xda, 0xed, 0x55, 0xcd, 0x6f, 0xdc, 0x44, 0x14, 0x77, 0x0e, 0x54, 0xb2, 0xc5, 0x4a, 0xeb, 0x2b, 0xe2, 0xf0, 0x52, 0x84, 0xba, 0x9b, 0xee, 0x6e, 0xed, 0x4d, 0xb2, 0x20, 0x37, 0x1b, 0x2d, 0x05, 0x21, 0x22, 0x15, 0x09, 0x91, 0xd0, 0x10, 0xa9, 0x39, 0xcc, 0x7a, 0x67, 0xd7, 0x16, 0xfe, 0x58, 0xc6, 0xe3, 0xa4, 0x56, 0xd5, 0x6b, 0x4f, 0x1c, 0xf9, 0x03, 0x38, 0xc1, 0x15, 0x4e, 0xdc, 0xb9, 0x21, 0x6d, 0xa4, 0xfc, 0x01, 0x71, 0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f, 0x8b, 0xee, 0x5c, 0x5d, 0xbc, 0xfd, 0xee, 0x40, 0xfb, 0x72, 0x4f, 0xff, 0x00, 0xc8, 0xda, 0xa8, 0x50,

build/baremetalpi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ LIBS := \
3030
$(TIC80LIB)/libluaapi.a \
3131
$(TIC80LIB)/liblua.a \
3232
$(TIC80LIB)/libmoon.a \
33+
$(TIC80LIB)/libyuescript.a \
3334
$(TIC80LIB)/libfennel.a \
3435
$(TIC80LIB)/libzip.a \
3536
$(TIC80LIB)/libblipbuf.a \

build/baremetalpi/toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ get_filename_component(ARM_TOOLCHAIN_DIR ${BINUTILS_PATH} DIRECTORY)
3030
# Now squirrel works.
3131
# Ideally should use the CFLAGS defined in circle build files, not hardwire them here too.
3232
# For RPI2
33-
#set(CMAKE_C_FLAGS " -DMINIZ_NO_TIME -DTIC_BUILD_WITH_FENNEL -DTIC_BUILD_WITH_MOON -DTIC_BUILD_WITH_JS -DTIC_BUILD_WITH_WREN -DTIC_BUILD_WITH_LUA -DLUA_32BITS -std=c99 -march=armv7-a+neon-vfpv4 -D AARCH=32 -D __circle__ -D BAREMETALPI --specs=nosys.specs -O3 -mabi=aapcs -marm -mfloat-abi=hard -mfpu=neon-vfpv4 -D__DYNAMIC_REENT__")
33+
#set(CMAKE_C_FLAGS " -DMINIZ_NO_TIME -DTIC_BUILD_WITH_FENNEL -DTIC_BUILD_WITH_MOON -DTIC_BUILD_WITH_YUE -DTIC_BUILD_WITH_JS -DTIC_BUILD_WITH_WREN -DTIC_BUILD_WITH_LUA -DLUA_32BITS -std=c99 -march=armv7-a+neon-vfpv4 -D AARCH=32 -D __circle__ -D BAREMETALPI --specs=nosys.specs -O3 -mabi=aapcs -marm -mfloat-abi=hard -mfpu=neon-vfpv4 -D__DYNAMIC_REENT__")
3434
# For RPI3
3535
# investigate -funsafe-math-optimizations and -march=armv8-a+crc -mcpu=cortex-a53
3636
set(CMAKE_C_FLAGS " -DMINIZ_NO_TIME -DLUA_32BITS -std=c99 -march=armv8-a -D AARCH=32 -mtune=cortex-a53 -D __circle__ -D BAREMETALPI --specs=nosys.specs -O3 -marm -mfloat-abi=hard -mfpu=neon-fp-armv8 -funsafe-math-optimizations -D__DYNAMIC_REENT__")

cmake/core.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ target_include_directories(tic80core
5151
PRIVATE
5252
${THIRDPARTY_DIR}/moonscript
5353
${THIRDPARTY_DIR}/fennel
54+
${THIRDPARTY_DIR}/yuescript
5455
${POCKETPY_DIR}/src
5556
PUBLIC
5657
${CMAKE_SOURCE_DIR}/include
@@ -72,6 +73,10 @@ if(BUILD_STATIC)
7273
target_link_libraries(tic80core PRIVATE moon)
7374
endif()
7475

76+
if(BUILD_WITH_YUE)
77+
target_link_libraries(tic80core PRIVATE yuescript)
78+
endif()
79+
7580
if(BUILD_WITH_FENNEL)
7681
target_link_libraries(tic80core PRIVATE fennel)
7782
endif()

cmake/lua.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(BUILD_WITH_LUA AND PREFER_SYSTEM_LIBRARIES)
2929
endif()
3030
endif()
3131

32-
if(BUILD_WITH_LUA OR BUILD_WITH_MOON OR BUILD_WITH_FENNEL)
32+
if(BUILD_WITH_LUA OR BUILD_WITH_MOON OR BUILD_WITH_YUE OR BUILD_WITH_FENNEL)
3333
set(LUA_DIR ${THIRDPARTY_DIR}/lua)
3434
set(LUA_SRC
3535
${LUA_DIR}/lapi.c

0 commit comments

Comments
 (0)