ODromo is a weakly typed Programming language written in NodeJS itself in 2022.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
// Hello World:
require sys;
void Main(argv=[]) {
Console.WriteLine("Hello, World!")
}
// Anonymous function
// the lambda keyword is the equivalent of "()=>" in JavaScript...
(lambda Console.WriteLine("Hello JPP!"))();
// The ["require", "load"] statements do the same thing... which is to load native JPP modules from the interpreter;
// if the argument is a string, load the string, and if it contains a comma, load all modules separated...
// else if it's a variable "in code terms..." load it normally.
// "load sys" equals "require sys", same statement
require sys;
require "sys";
require "sys, fs, controls";
// The void keyword is used as a function keyword in ODromo...
void sayHello(name) {
return Console.WriteLine("Hello " + name + "!");
}
// There are some predefined voids and functions...
let obj = {x: 0, foo: "bar"}
Console.WriteLine(x); // ReferenceError: x is not defiend.
extract(obj);
Console.WriteLine(x); // 0
// EX2:
if (!defined("someVar")) Console.WriteLine("someVar is not defined!")
// MATH SYNTAX IN ODROMO...
load math;
Console.WriteLine( 1pi ); // Works! and returns: # 3.14...
^^
// 1pi => 1 * Math.PI
// expo(X) => Math.exp(X)
// 180.54deg => 180.54 * Math.PI / 180
// 1rad => ......
// Getting input from user with sys::Console::ReadLine :
Console.ReadLine("prompt? "); // THIS IS SYNCRONOUS
// Sleeping:
sleep(ms); // THIS IS SYNCRONOUS TOO! NO MORE AWAIT STATEMENTS...
exit(0); // BYE!!
Copyright (c) 2022 LifeJS (https://www.github.com/rhpo/ODromo) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
• Email ― lifejs@ramey.ml
• Phone Number ― +213 553 23 84 10
• Discord ― (ODromo ― Gaming in JavaScript)
• Name ― Ramy Hadid.
• Age ― 17 Years old.
• Nationality ― 🇩🇿 Algeria.
• Linkedin ― (Ramy Hadid)
• Instagram ― @ramyhadid
• Discord ― ramy#1539
• GitHub ― @rhpo
• Email ― me@ramey.ml
• Programming Languages ― C# • Ruby • NodeJS • Julia.
Written by @rhpo with ❤️.