Quick overview of Steps
What is "Steps"?
❓ Steps is a programming language made specifically to run on Virtel. As have been said before, Steps also lacks lots of functionality, but is constantly improved - creating programs in Steps isn't that far away from reality. The file extension that Steps uses is pretty straightforward: .steps. The same thing can be said about the language itself, as the syntax is pretty easy to learn. If you don't like Steps, in the near future you will be able to write code via another language that compiles into Steps.
- File Reading: Reads the code file from the specified path.
- Lexical Analysis: Breaks the code into tokens (modules, commands, arguments).
- Parsing: Combines tokens into commands.
- Execution: Calls the corresponding functions for each module and command.
- Error Handling: Catches exceptions and forms error messages.
- Output: Displays results in the console or other output devices.
Example:
Virtel interprets Steps code through lexical analysis, parsing, and command execution, ensuring correct program execution.
- Lexical Analysis: Identifies tokens
csl
,write
,"Hello world!"
. - Parsing: Forms a command with module
csl
, commandwrite
, and argument. - Execution: Calls the
cslWrite
function with the argument. - Output: Prints "Hello world!" to the console.
Example, working with math commmands:
This example briefly shows how you can use mathematics in Steps.
Steps Code
Output of the code