Fegeya FlaScript - First Look

Hello there! My new (started 2 days ago) project is FlaScript.
  • FlaScript is simple and new generation programming language (aka scripting language, interpreting, not compiling or linking.)
  • FlaScript's extension is <dot>fls.
  • Written in C++17
  • Easy-use
~ Note: This project is under construction.

~ Write Hello FlaScript!:
C-like:
main() -> main {
print(string) -> "Hello FlaScript!"
// print -> "Hello FlaScript! This code gets a error, because EOL hasn't double quotes sign.
}
Output:
Hello FlaScript!

~ Write Hello World with newline:
C-like:
main() -> main {
// Newline is prints string and going to newline
// Newline = slashn = '\n' = "\n"
print(newline) -> "Hello World"
}
Output:
Hello FlaScript! <newline>

~ Comments
C-like:
/> MIT License
#
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved.
# Distributed under the terms of the MIT License.
#
</

main() -> main {
// This is single comment line
/> This is single comment line </
/> print -> "FlaScript test"
This is multiple comment line
</
print -> "FlaScript test"
}
~ Print String
C-like:
var(string) -> Hello FlaScript! -> Hello <-
main() -> main {
print(get[string] -> Hello) [this]
}
~ NOTE: String name is between the Left && Right Arrow operator.

~ Print String With C++ Code
C++:
#include <iostream>
#include <cstring>

#define OK 0

int main() {
        std::string Hello = "Hello C++17!";
        std::cout << Hello;
        return OK;
}

~ Print Colorized String
C-like:
main() -> main {
print(colorized[:1, 33:]) -> "Hello FlaScript! (Yellow)" <-
// EOL (End of Line) arrow operator is calling the RESET_COLOR
}
~ Exec Command
  • Exec command, executes command between in brackets.
C-like:
main() -> main {
exec(system -> uname ->)
}
~ Print Nil (aka NULL) String
C-like:
// string& -> nil string
var(string&) -> Hello <-
main() -> main {
print(get[string&] -> Hello) [this]
}
~ NOTE: & (Ampersand) sign meaning is Nil (aka NULL) for FlaScript.

~ Print Nil (aka NULL) Integer
C-like:
var(int&) -> Argc <-
main() -> main {
print(get[int&] -> Argc) [this]
}
Source code: FerhatGec/flascript

For my other projects (e.g. Scrift, Fetcheya etc.) : FerhatGec - Overview
  • Beğen
İfadeler: Salih METİN


Blog girdisi detayları

Ekleyen
FerhatGec
Görüntüleme
55
Son güncelleme

Yazılım kategorisindeki diğer girdiler

Bu girdiyi paylaş

Yukarı