How to use the
How to use the
Function
BT interpreter to execute the .bt file. If main.bt exists in the current directory during startup, the file will be executed by default; otherwise, it will enter the command line interactive mode.
Run and debug
// Output: hello world print 'hello world'
After installing the editor extension bt-lang, you can create main.bt in the project directory and run it directly.
Command line execution
-c demo.bt
Windows
puts bt.exe in the project directory. When double-clicking to run, main.bt in the current directory will be executed first.
Linux and macOS
cd /home/project chmod +x bt ./bt
Notes
- Script files uniformly use the
.btsuffix.