kankouhin / kaya-basic Goto Github PK
View Code? Open in Web Editor NEWMulti-platform BASIC compiler, supports Windows, Linux and macOS. easy extends with C++
Multi-platform BASIC compiler, supports Windows, Linux and macOS. easy extends with C++
just change r:\Kaya-BASIC-master\samples\wxGUI\treectrl\gui.bas
from
f = New wxFrame( NULL, wxID_ANY, "treectrl demo" )
to
dim strTitle as string = "treectrl demo"
f = New wxFrame( NULL, wxID_ANY, strTitle)
you will find what I am saying
大佬可以做个网络tcp实例嘛?
Hello, I would like to contribute to this project. Where can the source be found for the B++ compiler or Kaya-basic? I have a few cross-platform libraries for items like TCP, UDP, and other system functions that would work great with this project.
I test Kaya-BASIC in my msys2+mingw64 on win7
cd /r/Kaya-BASIC-master/samples/wxGUI/bppgui/
../../../bin/bpp -k -w gui.bas
g++ gui.cpp -Wall ../../../lib/libSystem64.a -I../../../lib/core ../../../lib/core/core64.o ../../../lib/core/core_res64.o ../../../lib/core/stw64.o `/mingw64/bin/wx-config --version=3.1 --static=yes --cxxflags --libs` -static
which can generate a.exe
as expected.
So I suggest bpp
only translate the BASIC source into CPP, then bpp
write a shell file or batch file to compile the CPP
into executable binary.
for R:\Kaya-BASIC-master\samples\wxGUI\menu&toolbar\
, since I don't know the detailed command line to compile toolbar.rc
, I can't make the exe file
for demos under R:\Kaya-BASIC-master\samples\coretests\
I use
cd /r/Kaya-BASIC-master/samples/coretests/comole/
../../../bin/bpp -k test.bas
g++ test.cpp -Wall ../../../lib/libSystem64.a -I../../../lib/core ../../../lib/core/core64.o ../../../lib/core/core_res64.o ../../../lib/core/stc64.o `/mingw64/bin/wx-config --version=3.1 --static=yes --cxxflags --libs` -static
The generated exe can run because Excel is lauched and the sheet is modified.
However, for other demos which use print
, there is no output while the exe is running. So I don't know wether they run correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.