【文件属性】:
文件名称:dragon:by受Python和Javascript启发的面向对象,动态类型,解释性编程语言
文件大小:150KB
文件格式:ZIP
更新时间:2021-05-26 15:51:35
language programming-language interpreter dragon dragon-lang
:dragon: Dragon是一种面向对象的解释型语言,它充当一种易于使用的脚本语言,它采用动态但强大的类型化和面向对象的编程,以使编程尽可能的好。
// fibonacci.drg
// print first one hundred numbers in the fibonacci sequence
class Fibonacci {
init ( ) {
this . a = 0 ;
this . b = 1 ;
}
next ( ) {
var newValue = this . a + this . b ;
this . a = this . b ;
this . b = newValue ;
return newValue ;
}
}
function run ( times ) {
var fibonacci = F
【文件预览】:
dragon-master
----.gitignore(22B)
----package.json(861B)
----.npmrc(18B)
----src()
--------dragon.js(3KB)
--------resolver.js(9KB)
--------parser.js(20KB)
--------structures()
--------lexer.js(7KB)
--------errors.js(442B)
--------lib()
--------environment.js(1KB)
--------Expr.js(4KB)
--------tokenTypes.js(1KB)
--------Stmt.js(4KB)
--------web.js(2KB)
--------interpreter.js(20KB)
----bin()
--------dragon(45B)
----LICENSE(1KB)
----index.js(243B)
----tools()
--------generateAst.js(2KB)
--------AstPrinter.js(748B)
----examples()
--------Readme.md(274B)
--------programs()
----Readme.md(2KB)
----Changelog.md(892B)
----docs()
--------website()
--------Readme.md(2KB)
--------index.html(791B)
--------logo.png(77KB)
--------favicon.ico(97KB)
--------pages()