当前位置:网站首页>My-basic application 2: my-basic installation and operation

My-basic application 2: my-basic installation and operation

2022-07-05 08:02:00 Changjiang houlang blog

stay windows The running effect on is as follows :

 

Installation process help :

Installation
 install 

Using standalone interpreter binary
// Use standalone interpreter binaries 

This repository contains precompiled binaries for Windows and macOS, 
the easiest way is to download to get a direct playground. 
Or you can make a build by:

// This library contains precompiled Windows and macOS Binary ,
// The easiest way to download binary files directly into Happy
// Or you can compile it yourself :

Using the Visual Studio workspace my_basic.sln on Windows to build an executable
Using the Xcode workspace my_basic_mac.xcodeproj on macOS to build an executable
Using the makefile on *nix OS to build an executable
//1、 stay window System use VS In the workspace my_basic.sln To create and run 
//2、 stay macOS System use Xcode In the workspace my_basic_mac.xcodeproj To create and run 
//3、 stay *nix OS System use makefile To create and run 

Follow these steps to compile an interpreter binary manually for any platform:
// Follow these steps to manually compile the interpreter binaries for any platform 


Retrieve everything under the core and shell folders for a minimum build
Setup your toolchain for compiling and linking
Compile core/my_basic.c and shell/main.c, with both including core/my_basic.h; 
then link up an executable

//1、 retrieval core and shell Everything under the folder , To get the smallest build 
//2、 Set up tool chains for compilation and linking 
//3、 compile core/my_basic.c  and   shell/main.c, Also include core/my_basic.h , Then connect to execute 


The standalone interpreter supports three running modes:
// Set up tool chains for compilation and linking :


Execute the binary without arguments to use the interactive mode
// Execute binaries without parameters , To use interactive mode 

Type "HELP" and hint Enter to get usages of it
// type “HELP” And prompt Enter To get its usage 

Pass a file to the binary to load and run that BASIC source code
// Pass files to binaries to load and run basic source code 

Pass an argument -e followed with an expression to evaluate and print instantly as a simple calculator, eg. -e "2 * (3 + 4)"
// Pass a parameter -e, Followed by an expression to calculate , And immediately print it out as a simple calculator :eg. -e "2 * (3 + 4)"

 

The content is being updated , Please continue to check ...

 

 

 

原网站

版权声明
本文为[Changjiang houlang blog]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140547277725.html