ns

所属分类:C/C++基础
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2022-08-11 17:12:13
上 传 者sh-1993
说明:  用js和cpp编写的一些编程语言
(some programming language written in js and cpp)

文件列表:
cpp/ (0, 2022-08-11)
cpp/.vscode/ (0, 2022-08-11)
cpp/.vscode/c_cpp_properties.json (485, 2022-08-11)
cpp/.vscode/settings.json (1835, 2022-08-11)
cpp/main.cpp (3716, 2022-08-11)
cpp/main.dSYM/ (0, 2022-08-11)
cpp/main.dSYM/Contents/ (0, 2022-08-11)
cpp/main.dSYM/Contents/Info.plist (633, 2022-08-11)
cpp/main.dSYM/Contents/Resources/ (0, 2022-08-11)
cpp/main.dSYM/Contents/Resources/DWARF/ (0, 2022-08-11)
cpp/main.dSYM/Contents/Resources/DWARF/main (436458, 2022-08-11)
cpp/method.cpp (1051, 2022-08-11)
cpp/method.h (389, 2022-08-11)
cpp/program (190264, 2022-08-11)
hello.nick (86, 2022-08-11)
js/ (0, 2022-08-11)
js/interpret.js (2587, 2022-08-11)
js/lex.js (2257, 2022-08-11)
js/main.js (473, 2022-08-11)
js/tree.js (2506, 2022-08-11)

# ns This is an (in progress) interpreter, written in javascript, for a high-level programming language called ns ## ns syntax This language is like python and lua, because it is dynamically typed and also because it is written like English Also there are no tabs and no encapsulating characters (except "" for strings) (at this point in dev). Expressions don't support PEMDAS (because of the lack of ()). So loops and ifs declare how many lines below 'belong' to them for example this if statement is holding the two lines underneath it: ``` if 2 => i > 5 var item = i print item ``` A for loop takes the number of times it's going to loop and the number of lines under it, it will run that many times: ``` for 4 => 2 i = i + 1 print i ``` This code runs the two lines underneath it four times.

近期下载者

相关文件


收藏者