pikascript
v1.0.0
Published
A JavaScript-like language for embedded systems
Downloads
13
Readme
PikaScript
PikaScript is a JavaScript-like language for embedded systems.
Installation
npm install -g pikascript
Usage
Run PikaScript files in a directory:
pikascript [directory]
If no directory is specified, it will run in the current directory.
PikaScript Syntax
PikaScript is similar to JavaScript with some syntax changes:
PikaVar
,PikaLet
,PikaConst
for variable declarationsPikaFunc
for function declarationsTypeOfpika
instead oftypeof
PikAsync
for async functionspikaPrint
instead ofconsole.log
PikaSetTimeout
andPikaSetInterval
for timing functionsPikaTry
andPikaCatch
for error handlingPikaClass
for class declarationsPikaNew
for object instantiationPikaImport
andPikaExport
for module operations
Example
PikaVar x = 10;
PikaFunc greet(name) {
pikaPrint("Hello, " + name + "!");
}
greet("Pikachu");
License
MIT