GithubHelp home page GithubHelp logo

kankouhin / kaya-basic Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 5.0 133.25 MB

Multi-platform BASIC compiler, supports Windows, Linux and macOS. easy extends with C++

C++ 87.69% C 10.55% VBA 1.64% Batchfile 0.05% CMake 0.06%

kaya-basic's People

Contributors

kankouhin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kaya-basic's Issues

bpp::string can not be used in wxWdigets

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

Source

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.

suggest to seperate bas2Cpp and compilation

I test Kaya-BASIC in my msys2+mingw64 on win7

  1. for most of wxGUI's demo, I use
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.

  1. 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

  2. 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.

  1. the last question. Which features will be supplied by Kaya-BASIC? Can it be used as a freebasic competitor?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.