Inital release!

This commit is contained in:
Ryan Ward 2020-05-20 22:33:19 -04:00
parent fb590b5b66
commit f4e1fe1522
3 changed files with 43 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# DialogueManagementScript # DialogueManagementScript
A scripting language for managing dialogue for an upcoming project I am working on A scripting language for managing dialogue for an upcoming project I am working on
The final version of the interperter will most likely be built in c++ and compiled as a dll. The syntax of the DMS will be very similar to the parseManager syntax I am working on. This will eventually replace the parseManager code.

36
test.dms Normal file
View File

@ -0,0 +1,36 @@
ENTRY main
ENABLE
DISABLE
LOADFILE
[main]
"This works!"
"What's up"
Ryan: "Hello how are you doing?"
Bob: "I'm good you?"
list = {1,2,3,true,false, {1,2,3}}
choice "Pick one:":
"first" func()
"second" func()
"third" func()
for x = 1,10:
...
while cond:
...
if cond:
...
elseif cond:
...
else:
...
var1,var2 = func(1,"string", 2+5)
[newblock:function()]

5
test.lua Normal file
View File

@ -0,0 +1,5 @@
package.path = "./?/init.lua;"..package.path
local pm = require("parseManager")
state = pm:load("test.dms")
print(state:dump())
state:think()