Nasal | Not another scripting language!


 Introduction | 介绍

Hello, this is a simple HTML document just for test. This simple http server is written in nasal. Nasal is an ECMAscript-like programming language that used in Flightgear designed by Andy Ross.

这是个用于测试的简易HTML文档。该http服务器是用nasal编写的。Nasal是一款用于飞行模拟器Flightgear的、类似ECMAscript的编程语言。该语言由Andy Ross设计完成。

The interpreter is totally rewritten by ValKmjolnir using C++(-std=c++11) without reusing the code in Andy Ross's nasal interpreter. But we really appreciate that Andy created this amazing programming language and his interpreter project. Now this project uses MIT license (2021/5/4). Edit it if you want, use this project to learn or create more interesting things(But don't forget me XD).

这个解释器是由ValKmjolnir用C++11编写的,完全没有复用Andy Ross版解释器的代码。但是我们仍然非常感谢Andy为我们带来了这么一款有趣的编程语言。 现在这个项目使用MIT协议开源 (2021/5/4)。 如果你有需求,可以自行修改,用这个解释器项目来学习或者创造更有意思的东西吧!(不过别忘了在项目协议中留下原作者名字哦)

 Benchmark | 执行效率


Benchmark of different versions of nasal interpreter(left). Beautiful picture generated by brainfuck interpreter written in nasal(right).

不同版本的nasal解释器执行效率图(左)。 nasal运行brainfuck绘制的曼德勃罗集合(右)。

Nasal can run this test file(test/bfcolored.nas) to draw this picture in about 220 seconds. In fact this test file cost over 2200 seconds before ver 8.0 .

Nasal现在可以在220秒内运行该文件(test/bfcolored.nas)并绘制出这张图。 在8.0版本中这个解释器需要跑超过2200秒来绘制这张图。

 Example | 样例代码

 Shutdown | 关闭服务器

Click here to shutdown http server.

Don't click me besauce i am just a teapot.