ID:122974
 
Well DMIDE is pretty much ready. But I feel that it's missing a couple of things. I have yet to finish the XML file for the autocomplete, what I have so far is pretty damn pathetic:

<autocomplete>
<proc name="abs">
<arg name="A" type="num" desc="A number"/>
<example>
usr &lt;&lt; abs(1) // outputs 1
usr &lt;&lt; abs(-1) // outputs 1
</example>
<return text="Returns the absolute value of A."/>
</proc>
<proc name="addtext">
<arg name="Arg1" type="string"/>
<arg name="Arg2" type="string"/>
<arg name="..." type="string"/>
<example>
var/T
T = &quot;1&quot;
T = addtext(T,&quot;*1 = &quot;,T) // T = &quot;1*1 = 1&quot;
world &lt;&lt; &quot;The answer is: [T]&quot;
</example>
</proc>
<proc name="alert">
<return text="A text string with the arguments concatenated."/>
<arg name="User" type="user" desc="The user to which the alert is displayed."/>
<arg name="Message" type="string" desc="The message to be displayed to the user."/>
<arg name="Title" type="string" desc="The title of the alert window."/>
<arg name="Button1" type="string" desc="The text displayed by the first button."/>
<arg name="Button2" type="string" desc="The text displayed by the second button."/>
<arg name="Button3" type="string" desc="The text displayed by the third button. [last button]"/>
<example>
mob/verb/self_destruct()
alert("Prepare to die.")
del usr
</example>
<example>
mob/verb/self_destruct()
switch(alert(&quot;Would you like to die?&quot;,,&quot;Yes&quot;,&quot;No&quot;,&quot;Maybe&quot;))
if(&quot;Yes&quot;)
del usr
if(&quot;No&quot;)
usr &lt;&lt; &quot;You have second thoughts.&quot;
if(&quot;Maybe&quot;)
usr &lt;&lt; &quot;You flip a coin...&quot;
if(rand(0,1))
usr &lt;&lt; &quot;Heads -- you lose.&quot;
del usr
else
usr &lt;&lt; &quot;Tails -- you win!&quot;
</example>
<return text="Selected button."/>
</proc>
<proc name="ASSERT" desc="">
<desc>This is used to make a sanity check. If the given expression is false, the
current procedure crashes, generating diagnostic debugging output, which
includes the expression, a stack dump, and so forth.
</desc>
<arg name="expression" type="expression" desc="An expression which should always be true."/>
</proc>
</autocomplete>


And another funny thing, I broke a single node in the preferences and I decided to remake the whole thing and removed the tree altogether in favor of a list of buttons. Then there's school, and Flame Sage is a Slave Driver. I had/have a couple of papers that needed/need to be completed. Documenting all of the global functions alone is proving to be a pretty damn tedious task. If there's a version out there that's already organized neatly please tell me about it.
make this open source please - or can I get a copy of the source?
If you can get a text file format of the reference you could probably write a very quick perl script to handle creating the autocomplete xml document. Problem is perl is easy to write and hard to learn(by the creator's own admission) so if you don't already know a good amount about perl you should look into other solutions.

P.S. Never learn perl.

P.P.S. This is why you should never learn perl. The following code prints out the entire 99 bottles of beer song.
#!/usr/bin/perl

''=~( '(?{' .('`' |'%') .('[' ^'-')
.('`' |'!') .('`' |',') .'"'. '\\$'
.'==' .('[' ^'+') .('`' |'/') .('['
^'+') .'||' .(';' &'=') .(';' &'=')
.';-' .'-'. '\\$' .'=;' .('[' ^'(')
.('[' ^'.') .('`' |'"') .('!' ^'+')
.'_\\{' .'(\\$' .';=('. '\\$=|' ."\|".( '`'^'.'
).(('`')| '/').').' .'\\"'.+( '{'^'['). ('`'|'"') .('`'|'/'
).('['^'/') .('['^'/'). ('`'|',').( '`'|('%')). '\\".\\"'.( '['^('(')).
'\\"'.('['^ '#').'!!--' .'\\$=.\\"' .('{'^'['). ('`'|'/').( '`'|"\&").(
'{'^"\[").( '`'|"\"").( '`'|"\%").( '`'|"\%").( '['^(')')). '\\").\\"'.
('{'^'[').( '`'|"\/").( '`'|"\.").( '{'^"\[").( '['^"\/").( '`'|"\(").(
'`'|"\%").( '{'^"\[").( '['^"\,").( '`'|"\!").( '`'|"\,").( '`'|(',')).
'\\"\\}'.+( '['^"\+").( '['^"\)").( '`'|"\)").( '`'|"\.").( '['^('/')).
'+_,\\",'.( '{'^('[')). ('\\$;!').( '!'^"\+").( '{'^"\/").( '`'|"\!").(
'`'|"\+").( '`'|"\%").( '{'^"\[").( '`'|"\/").( '`'|"\.").( '`'|"\%").(
'{'^"\[").( '`'|"\$").( '`'|"\/").( '['^"\,").( '`'|('.')). ','.(('{')^
'[').("\["^ '+').("\`"| '!').("\["^ '(').("\["^ '(').("\{"^ '[').("\`"|
')').("\["^ '/').("\{"^ '[').("\`"| '!').("\["^ ')').("\`"| '/').("\["^
'.').("\`"| '.').("\`"| '$')."\,".( '!'^('+')). '\\",_,\\"' .'!'.("\!"^
'+').("\!"^ '+').'\\"'. ('['^',').( '`'|"\(").( '`'|"\)").( '`'|"\,").(
'`'|('%')). '++\\$="})' );$:=('.')^ '~';$~='@'| '(';$^=')'^ '[';$/='`';
I would have done that with another language but the HTML used in the reference isn't consistent, I guess I could get around that though.
This is going to be big. Can't wait for the release!
Care to explain what this even is? I'm roughly guessing you're making an auto-complete feature for the DM language in some IDE?
In response to FIREking (#5)
FIREking wrote:
Care to explain what this even is? I'm roughly guessing you're making an auto-complete feature for the DM language in some IDE?

You are correct.
What IDE, I hope not home-brewed...
In response to FIREking (#7)
DMIDE, a compiler he's writing in Java for DM.
In response to LordAndrew (#8)
LordAndrew wrote:
DMIDE, a compiler he's writing in Java for DM.

You're not entirely correct, the compiler is written by Dan(when he was still around). ExPixel is just making an IDE for it, but he is still calling dm.exe.
Someone should write one for Eclipse.
Eclipse is an IDE for Java.
In response to Darker Legends (#11)
Darker Legends wrote:
Eclipse is an IDE for Java.

Wrong, Eclipse is an IDE, popular for Java yes, but also readily available for C or C++. Its very customizable, and supports plugins. I wouldn't be surprised if you could make it code and compile DM.
You forgot about the fact that Eclipse is unstable.
In response to Darker Legends (#13)
Darker Legends wrote:
You forgot about the fact that Eclipse is unstable.

Unstable? Please haha. I use it all the time and it works fine. Mojang also uses eclipse, famously.

Furthermore, I am willing to bet it will be more stable than any 1-user created IDE made by someone here.
I'm not sure whether you're trying to troll or if you're just plain *insert some word here*.
Eclipse is stable for me... I'm plain right.
Ask JBoer, he's the one who told me it isn't stable.
It's free. I'll give it that. Anything that's free is expected to have some quirks. But I choose it over Microsoft's visual suite.
There's also NetBeans.
Page: 1 2