the beginning of a new interpreter

This commit is contained in:
Valk Richard Li
2020-05-31 10:19:26 -07:00
committed by GitHub
parent 2bb4ece7b7
commit e1d23baef3
16 changed files with 771 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# nasal lib thread.nas
# 2020/2/6
# this file is used to avoid name confliction
# and is used to avoid name undefined
# before running this file will be translated to abstract syntax tree
# and this ast will be linked before main ast as main-ast's beginning
var thread=
{
newthread:func(){},
newlock:func(){},
lock:func(){},
unlock:func(){},
newsem:func(){},
semdown:func(){},
semup:func(){},
};