Write anything your way. Nougat won't mind. It's a next-generation programming language that intelligently compiles to JavaScript and aims to balance ease of use and raw performance!
Nougat is designed for developers of all skill levels to focus on the creative part of their projects instead of debugging issues for hours. Just write and run! With Nougat, you don't need to strictly declare much of anything; the compiler will probably know what you mean.
Nougat syntax is so simple we can put it on bullet points on a single section of this website:
a:b
Functions: are like terminal commands. These start a code line and use colons to separate their parts:
foo:bar:orderFromTheBar
. foo
is the plugin/root, bar
(middle parts) is the category, and
orderFromTheBar
(the last part) is the function.{}()[]<>
Inputs: are the positional arguments for your command. They are data-containing brackets, each with a different purpose:
{}
: Is used for literal, dynamically-typed values. The compiler automatically detects the value inside it as
an int
, or string
if there's at least one non-number. No need for "
's.()
: Is used to reference variables.[]
: Is used to pipe the output of the code line inside it to the parent one.<>
: Is used to evaluate a logical expression inside it. Here's how to use it.You can even add...
Since all the compiler sees is the function
and the {inputs}
, you can use the blank spaces after the function name to
add context wherever you need it. Micro-comments live beside the code they describe:
Nougat already has a few functions built-in, many of which are borrowed from Scratch, but you can easily import
community-made .ngx
plugins into your project to get even more! Just add the download URLs of your plugins to your imports
file on your project's root folder:
Built-in plugins like mediaStage
are auto-imported as you use them!
You can even insert raw JavaScript mid-sentence into your Nougat code with the js
function:
Nougat can be used in learning, in prototyping, and even in production, for all kinds of applications:
Nougat can be compiled to JS and exported to: