main() -> main
This code block is make a start signal from FlaScript interpreter, all codes working from here.
main() -> main {
/> Your code here. </
} main;
() -> main {
/> Your code here. </
} main;
First, FlaScript has ~3 different output option.
- 1 - print
- 2 - fprintf || fprintln
- 3 - execout
- 4 - executepp
print
is default and simply output command. This is executes C++ code.
main() -> main {
print(string) -> "Hello World!"
} main;
Hello World!
main() -> main {
print(string) -> "Hello World!"
print(newline)
} main;
Hello World!
(newline)
print
supports these types.
- 1 - string
- 2 - string& (& = null || nil)
- 3 - var[int]
- 4 - int& (& = null || nil)
- 5 - input (Under the construction)
- 6 - last (Under the construction)
- 7 - func
- 8 - dynamic
- 9 - get[] (string, int, string&, int&, env)
- 10 - newline
- 11 - colorized
- 12 - rcolorized etc.
These, will be in the 'print' folder. Wait up.
fprintf
is different than print
. Supports multiple text.
fprintln
same with fprintf
but prints newline into last line.
main() -> main {
fprintf(<%string>[:"Hello ":, :"FlaScript!":, :" 1234567890":])
} main;
Hello FlaScript! 1234567890
main() -> main {
fprintln(<%string>[:"Hello ":, :"FlaScript!":, :" 1234567890":])
} main;
Hello FlaScript! 1234567890
(newline)
fprintf
and fprintln
supports only string
type.
```execout`` is based on ExecutePlusPlus library and this command is gets inputted command's output.
main() -> main {
execout(-> echo Hello World! <-)
} main;
Hello World!
(newline)
executepp
implementation of ExecutePlusPlus library.
main() -> main {
executepp("ExecuteName", "whoami")
} main;
root
- Tip:
execout(-> your command here <-)