Skip to content

Getting Started

aixoio edited this page Jan 14, 2023 · 2 revisions

Download the repo and use pyinstaller to compile it with this code

pyinstaller src/main.py

Hello World!

Make a new file called helloworld.bluc open it and add

PRINT Hello World!

Use the PRINT command to print a string to the console. To run your code use ./bluc -d helloworld.bluc

Hello there!

Make a new file called hellothere.bluc open it and add

PRINT Hello, please enter your name
INPUT name
PRINT Hello
PRINTVAR name
PRINT nice to meet you!

Use the PRINT command to print a string to the console. Use the INPUT command to get input from the console. Use the PRINTVAR command to print a var to the console.

Truth Machine

Enter a 1 to print 1s forever. Enter a 0 to print 1 zero.

PRINT 1 or 0
INPUT in

RUNIF $in == !0! |SET times = 1|PASS|
RUNIF $in == !1! |SET times = @|PASS|

LOOP _ times

PRINTVAR in

ENDLOOP
Clone this wiki locally