Skip to content

About The Script

linwe2012 edited this page Nov 25, 2018 · 3 revisions

The Script interpreter is still under development.

syntax:

Like JS

imread(filePath) //returns a image
imread(filePath, image)

imflip2d(image, array)
imtranslate2d(image, array)
imscale2d(image, array)
imrotate2d(image, array)
imshear2d(image, array)
imshow(image)
figure(WindowName)
delete var //delete a var
Arr = [1, 2, 3] //define an array

Why choose .js

We need syntax highlighting, so we have to make it like existing language.

First, we narrow it down to weak type language. Second, we hope vs code won't check for undeclared functions, otherwise, we will get lots of angry wavy lines. Third, It must be a commonly used, so most Editor can recognize. Fourth, we want it to look pretty in the editor. So that leads us to javascript.

Syntax Highlighting Under javascript

js

Syntax Highlighting Under C++ cpp

Clone this wiki locally