Serial
Another programming language. Built on Python.
Building and running program
In order to run the program on serial
, unfortunately you still need python.
Requirements
- Python >= 3.9.0 (I tested and wrote the language in Python 3.10.0, so I can't guarantee the stability of work on versions below).
In order to start the build and run the program, you need to enter the following command:
python3.10 serial.py --file=link/to/the/file.serial
You can also specify additional arguments to the interpreter, or look up help (using the -h
argument). Most-used arguments:
--file=PATH/TO/FILE # Run file with interpriter.
--debug=true # Turning on debug mode.
--execution-time=true # How fast the program runs.
Examples
Output the sentence Hello, world!
to the console:
puts "Hello, world!"
Squaring 2:
int i = 2 ^ 2
puts i