-
Notifications
You must be signed in to change notification settings - Fork 0
About The Script
linwe2012 edited this page Nov 25, 2018
·
3 revisions
The Script interpreter is still under development.
-
Learned a lot from Implementing a language with LLVM Chap1 & Chap2, which teaches how to build an AST.
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 arrayWe 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

Syntax Highlighting Under C++
