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是类似ECMAscript的一款编程语言,用于飞行模拟器Flightgear。该语言由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).

Here is the benchmark of different versions of nasal interpreter(left).
Look at this beautiful picture(right).
Nasal can run this test file(test/bfcolored.nas) in about 220 seconds.
In fact this test file cost over 2200 seconds before ver 8.0 .
            1    var nasal=func(lexical,syntax){
            2        return {
            3            print  : func{println("hello world")},
            4            set_lex: func(lex){lexical=lex},
            5            get_lex: func{return lexical},
            6            set_syn: func(syn){syntax=syn},
            7            get_syn: func{return syntax}
            8        };
            9    }