Go to file
Valk Richard Li 6f76331ae0
add type string | change output format
2019-07-30 20:56:07 +08:00
.gitignore Initial commit 2019-07-25 02:11:59 +08:00
NASAL语言教程-完整版.pdf Add files via upload 2019-07-25 02:18:20 +08:00
README.md Update README.md 2019-07-29 21:50:18 +08:00
interpreter_lab.cpp add something new in class var 2019-07-28 21:02:43 +08:00
lexer.h add something new in class var 2019-07-28 21:02:43 +08:00
lexical_analysis.cpp add type string | change output format 2019-07-30 20:56:07 +08:00
nasal.h Add files via upload 2019-07-28 00:01:28 +08:00
nasal_hash.cpp add class var&add function pop|subvec|setsize 2019-07-27 14:39:56 +08:00
nasal_hash.h add class var&add function pop|subvec|setsize 2019-07-27 14:39:56 +08:00
nasal_list.cpp add something new in class var 2019-07-28 21:02:43 +08:00
nasal_list.h add something new in class var 2019-07-28 21:02:43 +08:00
nasal_print.h almost complete all var types 2019-07-26 15:28:13 +08:00
process_stack.h add something new in class var 2019-07-28 21:02:43 +08:00
var_lab.cpp Add files via upload 2019-07-28 00:01:28 +08:00

README.md

Nasal-Interpreter

Nasal

Nasal is a script language that used in FlightGear.

There is a Nasal console in FlightGear but sometimes it is not so easy for every developer to use.

So this is an interpreter for Nasal written by C++.

The interpreter is still in development.Anyone who interested in this could also join us!

Now complete all types

var: int float double std::string char long long int

NasalList: array in nasal []

append

setsize

subvec

pop

sort

NasalHash: Hash in nasal {}

append

delete

contains

keys

Now complete Lexical Analysis!

What it looks like?

( - , ---- )

( 标识符 , U )

( - , ---- )

( 标识符 , V )

( " , ---- )

( , , ---- )

( Number , 1 )

( ) , ---- )

( ; , ---- )

( Reserve Word , var )

( 标识符 , bwdANode )

( = , ---- )

( 标识符 , props.getNode )

( ( , ---- )

( " , ---- )

( / , ---- )

( 标识符 , systems )

This is what it outputs.