moved some files around added DMS npp syntax highlighting

This commit is contained in:
Ryan Wardm 2020-08-05 16:27:27 -04:00
parent ddfb76d199
commit ad31174221
4 changed files with 612 additions and 0 deletions

64
DMS syntax npp.xml Normal file
View File

@ -0,0 +1,64 @@
<NotepadPlus>
<UserLang name="DMS" ext="dms" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="2" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">^ + - * / = ( ) [ ] , &gt; &lt; ~ ! | ; :</Keywords>
<Keywords name="Operators2"></Keywords>
<Keywords name="Folders in code1, open">{</Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close">}</Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">ENABLE DISABLE LOADFILE ENTRY USING VERSION as AS enable disable loadfile entry using version</Keywords>
<Keywords name="Keywords2">if then return and or true false for while choice end else elseif goto</Keywords>
<Keywords name="Keywords3">leaking debugging warnings statesave hostmsg</Keywords>
<Keywords name="Keywords4">ceil tan CSIM log10 sinh GOTOE lshift deg MUL QUIT cosh exp rad GOTO SUB log ADD JUMP error POW randomseed floor tanh max atan SKIP acos DIV abs rshif COMPARE print atan2 asin cos sin mod sqrt function getInput sleep getVar setVar newThread setGlobalVar getGlobalVar SAVE LOAD WATCH env char</Keywords>
<Keywords name="Keywords5">_VERSION</Keywords>
<Keywords name="Keywords6">filesystem extendedDefine</Keywords>
<Keywords name="Keywords7"></Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00:: 01 02:: 03$ 04 05$ 06&quot; 07\ 08&quot; 09 10 11 12&apos; 13 14&apos; 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="C3C3C3" bgColor="293135" fontName="math.exp()" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="808080" bgColor="293134" fontName="math.frexp()" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="808080" bgColor="293134" fontName="math.min()" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="FF8080" bgColor="293134" fontName="object.height" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="FF8000" bgColor="293134" fontName="math.sin()" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="0080C0" bgColor="293134" fontName="object.align" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="408080" bgColor="293134" fontName="object.maskX" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="5959AC" bgColor="293134" fontName="object.text" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="FF0080" bgColor="293134" fontName="object.xScale" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="149311" bgColor="293134" fontName="0" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="0080C0" bgColor="293134" fontName="0" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="EAC195" bgColor="293134" fontName="os.execute()" fontStyle="1" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="EAC195" bgColor="293134" fontName="require()" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="Lua" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="8080C0" bgColor="293134" fontName="timer.pause()" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="DELIMITERS2" fgColor="808040" bgColor="293134" fontName="string.upper()" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="FFA346" bgColor="293134" fontName="string.gsub()" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="408080" bgColor="293134" fontName="165" fontStyle="1" nesting="0" />
<WordsStyle name="DELIMITERS5" fgColor="FFA346" bgColor="293134" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="0" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>

472
dump.txt Normal file
View File

@ -0,0 +1,472 @@
Token Dump:
Line <1>ENTR flag
Line <1>NOOP name main
Line <1>NOOP newline
Line <2>ENAB flag
Line <2>NOOP name warnings
Line <2>NOOP newline
Line <4>NOOP newline
Line <5>LOAD flag
Line <5>NOOP string loadtest.dms
Line <5>NOOP newline
Line <6>VERN flag
Line <6>NOOP number 1.2
Line <6>NOOP newline
Line <7>USIN flag
Line <7>NOOP name extendedDefine
Line <7>NOOP newline
Line <8>NOOP newline
Line <9>NOOP bracketo
Line <9>NOOP name main
Line <9>NOOP bracketc
Line <9>NOOP newline
Line <10>NOOP tab
Line <10>NOOP string This works!
Line <10>NOOP newline
Line <11>NOOP tab
Line <11>NOOP string What's up
Line <11>NOOP newline
Line <12>NOOP newline
Line <13>NOOP tab
Line <13>NOOP name ryan
Line <13>NOOP string Hello "how" are you doing?
Line <14>NOOP newline
Line <15>NOOP tab
Line <15>NOOP name bob
Line <15>NOOP string I'm good you?
Line <15>NOOP newline
Line <16>NOOP tab
Line <16>NOOP newline
Line <17>NOOP tab
Line <17>NOOP name tester
Line <17>NOOP equal
Line <17>NOOP string Hello
Line <17>NOOP newline
Line <18>NOOP tab
Line <18>NOOP newline
Line <19>NOOP tab
Line <19>NOOP name food
Line <19>NOOP equal
Line <19>NOOP number 3
Line <19>NOOP newline
Line <20>NOOP tab
Line <20>NOOP newline
Line <21>NOOP tab
Line <21>NOOP name hi
Line <21>NOOP equal
Line <21>NOOP cbracketo
Line <21>NOOP number 1
Line <21>NOOP seperator
Line <21>NOOP number 2
Line <21>NOOP seperator
Line <21>NOOP number 3
Line <21>NOOP cbracketc
Line <21>NOOP newline
Line <22>NOOP newline
Line <23>NOOP tab
Line <23>NOOP name list
Line <23>NOOP seperator
Line <23>NOOP name test
Line <23>NOOP equal
Line <23>NOOP cbracketo
Line <23>NOOP cbracketo
Line <23>NOOP number 1
Line <23>NOOP seperator
Line <23>NOOP number 2
Line <23>NOOP plus
Line <23>NOOP name food
Line <23>NOOP seperator
Line <23>NOOP name hi
Line <23>NOOP bracketo
Line <23>NOOP number 3
Line <23>NOOP bracketc
Line <23>NOOP cbracketc
Line <23>NOOP seperator
Line <23>NOOP name true
Line <23>NOOP seperator
Line <23>NOOP name tester
Line <23>NOOP seperator
Line <23>NOOP number 123
Line <23>NOOP seperator
Line <23>NOOP string This is a string!
Line <23>NOOP seperator
Line <23>NOOP name false
Line <23>NOOP seperator
Line <23>NOOP cbracketo
Line <23>NOOP number 3
Line <23>NOOP seperator
Line <23>NOOP number 2
Line <23>NOOP seperator
Line <23>NOOP number 1
Line <23>NOOP cbracketc
Line <23>NOOP cbracketc
Line <23>NOOP seperator
Line <23>NOOP number 5
Line <23>NOOP newline
Line <24>NOOP tab
Line <24>NOOP name a
Line <24>NOOP equal
Line <24>NOOP name list
Line <24>NOOP bracketo
Line <24>NOOP number 1
Line <24>NOOP bracketc
Line <24>NOOP newline
Line <25>NOOP newline
Line <26>NOOP tab
Line <26>NOOP name hungry
Line <26>NOOP equal
Line <26>NOOP parao
Line <26>NOOP minus
Line <26>NOOP number 2
Line <26>NOOP plus
Line <26>NOOP number 4
Line <26>NOOP minus
Line <26>NOOP parao
Line <26>NOOP parao
Line <26>NOOP number 5
Line <26>NOOP multiply
Line <26>NOOP number 5
Line <26>NOOP parac
Line <26>NOOP divide
Line <26>NOOP name sqrt
Line <26>NOOP parao
Line <26>NOOP number 144
Line <26>NOOP plus
Line <26>NOOP number 5
Line <26>NOOP parac
Line <26>NOOP parac
Line <26>NOOP parac
Line <26>NOOP pow
Line <26>NOOP number 2
Line <26>NOOP multiply
Line <26>NOOP number 2
Line <26>NOOP plus
Line <26>NOOP number 2
Line <26>NOOP newline
Line <27>NOOP tab
Line <27>NOOP name list
Line <27>NOOP bracketo
Line <27>NOOP number 1
Line <27>NOOP bracketc
Line <27>NOOP equal
Line <27>NOOP string Hello
Line <27>NOOP newline
Line <28>NOOP tab
Line <28>NOOP number var1
Line <28>NOOP seperator
Line <28>NOOP name var2
Line <28>NOOP number
Line <28>NOOP equal
Line <28>NOOP name func
Line <28>NOOP parao
Line <28>NOOP number 1
Line <28>NOOP seperator
Line <28>NOOP string string
Line <28>NOOP seperator
Line <28>NOOP number 2
Line <28>NOOP plus
Line <28>NOOP number 5
Line <28>NOOP parac
Line <28>NOOP newline
Line <29>NOOP tab
Line <29>NOOP name a
Line <29>NOOP equal
Line <29>NOOP name 100
Line <29>NOOP number
Line <29>NOOP plus
Line <29>NOOP name func
Line <29>NOOP parao
Line <29>NOOP number 1
Line <29>NOOP seperator
Line <29>NOOP string string
Line <29>NOOP seperator
Line <29>NOOP number 2
Line <29>NOOP plus
Line <29>NOOP number 5
Line <29>NOOP parac
Line <29>NOOP plus
Line <29>NOOP number 100
Line <29>NOOP newline
Line <30>NOOP tab
Line <30>NOOP name func
Line <30>NOOP parao
Line <30>NOOP number 1
Line <30>NOOP seperator
Line <30>NOOP string string
Line <30>NOOP seperator
Line <30>NOOP number 2
Line <30>NOOP plus
Line <30>NOOP number 5
Line <30>NOOP parac
Line <30>NOOP newline
Line <31>NOOP tab
Line <31>NOOP label label
Line <31>NOOP newline
Line <32>NOOP tab
Line <33>NOOP newline
Line <34>NOOP tab
Line <34>NOOP newline
Line <35>NOOP tab
Line <35>CHOI control
Line <35>NOOP string Pick one:
Line <35>NOOP newline
Line <36>NOOP tab
Line <36>NOOP tab
Line <36>NOOP string first
Line <36>NOOP name func
Line <36>NOOP parao
Line <36>NOOP parac
Line <36>NOOP newline
Line <37>NOOP tab
Line <37>NOOP tab
Line <37>NOOP string second
Line <37>NOOP name func
Line <37>NOOP parao
Line <37>NOOP parac
Line <37>NOOP newline
Line <38>NOOP tab
Line <38>NOOP tab
Line <38>NOOP string third
Line <38>NOOP name func
Line <38>NOOP parao
Line <38>NOOP parac
Line <38>NOOP newline
Line <39>NOOP tab
Line <39>NOOP tab
Line <39>NOOP string forth
Line <39>NOOP name func
Line <39>NOOP parao
Line <39>NOOP parac
Line <39>NOOP newline
Line <40>NOOP newline
Line <41>NOOP tab
Line <41>NOOP for
Line <41>NOOP name x
Line <41>NOOP equal
Line <41>NOOP number 1
Line <41>NOOP seperator
Line <41>NOOP number 10
Line <41>NOOP newline
Line <42>NOOP tab
Line <42>NOOP tab
Line <42>NOOP for
Line <42>NOOP name y
Line <42>NOOP equal
Line <42>NOOP number 1
Line <42>NOOP seperator
Line <42>NOOP number 10
Line <42>NOOP seperator
Line <42>NOOP number 1
Line <42>NOOP newline
Line <43>NOOP tab
Line <43>NOOP tab
Line <43>NOOP tab
Line <43>NOOP for
Line <43>NOOP name z
Line <43>NOOP equal
Line <43>NOOP number 1
Line <43>NOOP seperator
Line <43>NOOP number 10
Line <43>NOOP newline
Line <44>NOOP tab
Line <44>NOOP tab
Line <44>NOOP tab
Line <44>NOOP tab
Line <44>NOOP string test
Line <44>NOOP newline
Line <45>NOOP tab
Line <45>NOOP tab
Line <45>NOOP tab
Line <45>NOOP tab
Line <45>NOOP string $x$ $y$ $z$
Line <45>NOOP newline
Line <46>NOOP tab
Line <46>NOOP name test
Line <46>NOOP equal
Line <46>NOOP name true
Line <46>NOOP newline
Line <47>NOOP tab
Line <47>NOOP name test2
Line <47>NOOP number
Line <47>NOOP equal
Line <47>NOOP name false
Line <47>NOOP newline
Line <48>NOOP tab
Line <48>NOOP newline
Line <49>NOOP tab
Line <49>NOOP name count
Line <49>NOOP equal
Line <49>NOOP number 0
Line <49>NOOP newline
Line <50>NOOP tab
Line <50>NOOP newline
Line <51>NOOP tab
Line <51>WHLE control
Line <51>NOOP name count
Line <51>NOOP not
Line <51>NOOP equal
Line <51>NOOP number 100
Line <51>NOOP newline
Line <52>NOOP tab
Line <52>NOOP tab
Line <52>NOOP name count
Line <52>NOOP plus
Line <52>NOOP plus
Line <52>NOOP newline
Line <53>NOOP tab
Line <53>NOOP tab
Line <53>NOOP string Count = $count$
Line <53>NOOP newline
Line <54>NOOP tab
Line <54>NOOP newline
Line <55>NOOP tab
Line <55>IFFF control
Line <55>NOOP parao
Line <55>NOOP name func
Line <55>NOOP parao
Line <55>NOOP number 123
Line <55>NOOP parac
Line <55>NOOP not
Line <55>NOOP equal
Line <55>NOOP name name
Line <55>NOOP bracketo
Line <55>NOOP number 1
Line <55>NOOP bracketc
Line <55>NOOP or
Line <55>NOOP true
Line <55>NOOP equal
Line <55>NOOP equal
Line <55>NOOP string Bob
Line <55>NOOP parac
Line <55>NOOP and
Line <55>NOOP name foodcount
Line <55>NOOP equal
Line <55>NOOP number 10.34
Line <55>NOOP newline
Line <56>NOOP tab
Line <56>NOOP tab
Line <56>NOOP string test=true or test2=false!
Line <56>NOOP number
Line <56>NOOP newline
Line <57>NOOP tab
Line <57>NOOP tab
Line <57>NOOP string help me
Line <57>NOOP newline
Line <58>NOOP tab
Line <58>NOOP tab
Line <58>IFFF control
Line <58>NOOP name cool
Line <58>NOOP equal
Line <58>NOOP equal
Line <58>NOOP name true
Line <58>NOOP newline
Line <59>NOOP tab
Line <59>NOOP tab
Line <59>NOOP tab
Line <59>NOOP string We are here
Line <59>NOOP newline
Line <60>NOOP tab
Line <60>NOOP tab
Line <60>NOOP tab
Line <60>NOOP string Nested if
Line <60>NOOP newline
Line <61>NOOP tab
Line <61>NOOP tab
Line <61>ELIF control
Line <61>NOOP name food
Line <61>NOOP equal
Line <61>NOOP number 21
Line <61>NOOP newline
Line <62>NOOP tab
Line <62>NOOP tab
Line <62>NOOP tab
Line <62>NOOP string This is getting weird
Line <62>NOOP newline
Line <63>NOOP tab
Line <63>NOOP tab
Line <63>NOOP string Hi
Line <63>NOOP newline
Line <64>NOOP tab
Line <64>ELIF control
Line <64>NOOP parao
Line <64>NOOP number func2
Line <64>NOOP parao
Line <64>NOOP number 321
Line <64>NOOP parac
Line <64>NOOP not
Line <64>NOOP equal
Line <64>NOOP number name2
Line <64>NOOP bracketo
Line <64>NOOP number 1
Line <64>NOOP bracketc
Line <64>NOOP or
Line <64>NOOP true
Line <64>NOOP equal
Line <64>NOOP equal
Line <64>NOOP string Bob2
Line <64>NOOP number
Line <64>NOOP parac
Line <64>NOOP and
Line <64>NOOP name foodcount2
Line <64>NOOP number
Line <64>NOOP equal
Line <64>NOOP number 1.78
Line <64>NOOP newline
Line <65>NOOP tab
Line <65>NOOP tab
Line <65>NOOP string This Block
Line <65>NOOP newline
Line <66>NOOP tab
Line <66>NOOP name else
Line <66>NOOP newline
Line <67>NOOP tab
Line <67>NOOP tab
Line <67>NOOP string That Block
Line <67>NOOP newline
Line <68>NOOP tab
Line <68>NOOP string ah this is why no pop
Line <68>NOOP newline
Line <69>NOOP newline
Line <70>NOOP bracketo
Line <70>NOOP name Ryan
Line <70>NOOP bracket
Line <70>NOOP name char
Line <70>NOOP bracketc
Line <70>NOOP newline
Line <71>NOOP tab
Line <71>NOOP name age
Line <71>NOOP equal
Line <71>NOOP number 24
Line <71>NOOP newline
Line <72>NOOP tab
Line <72>NOOP name money
Line <72>NOOP equal
Line <72>NOOP number 100
Line <72>NOOP newline
Line <73>NOOP tab
Line <73>NOOP newline
Line <74>NOOP bracketo
Line <74>NOOP name test
Line <74>NOOP bracket
Line <74>NOOP name env
Line <74>NOOP bracketc
Line <74>NOOP newline
Line <75>NOOP tab
Line <75>NOOP string test
Line <75>NOOP newline
Line <76>NOOP newline
Line <77>NOOP bracketo
Line <77>NOOP name newblock
Line <77>NOOP bracket
Line <77>NOOP name function
Line <77>NOOP parao
Line <77>NOOP parac
Line <77>NOOP bracketc
Line <77>NOOP newline
Line <78>NOOP tab
Line <78>NOOP string Test #2
Line <78>NOOP number
Line <78>NOOP newline
Line <79>NOOP tab
Line <79>NOOP string Does it parse this part properly?
Line <79>NOOP newline

76
test.dms Normal file
View File

@ -0,0 +1,76 @@
entry main
enable warnings
//enable debugging
loadfile "loadtest.dms"
version 1.2
using extendedDefine
[main]
"This works!"
"What's up"
Ryan "Hello \"how\" are you doing?" // this is a comment
Bob "I'm good you?"
tester = "Hello"
food = 3
hi = {1,2,3}
list,test = {{1,2+food,hi[3]},true,tester,123,"This is a string!",false, {3,2,1}},5
a = list[1]
hungry = (-2+4-((5*5)/sqrt(144+5)))^2*2+2
list[1] = "Hello"
var1,var2 = func(1,"string", 2+5)
a = 100 + func(1,"string", 2+5) + 100
func(1,"string", 2+5)
::label::
//Hello im testing stuff
CHOICE "Pick one:"
"first" func()
"second" func()
"third" func()
"forth" func()
for x = 1,10
for y = 1,10,1
for z = 1,10
"test"
"$x$ $y$ $z$"
test = true
test2 = false
count = 0
while count != 100
count++;
"Count = $count$"
if (func(123)!=name[1] or true == "Bob") and foodCount >= 10.34
"test=true or test2=false!"
"help me"
if cool == true
"We are here"
"Nested if"
elseif food >= 21
"This is getting weird"
"Hi"
elseif (func2(321)!=name2[1] or true == "Bob2") and foodCount2 >= 1.78
"This Block"
else
"That Block"
"ah this is why no pop"
[Ryan:char]
age = 24
money = 100
[test:env]
"test"
[newblock:function()]
"Test #2"
"Does it parse this part properly?"