Welcome Guest ( Log In | Register )

Spring Specials, Click Here!
 
Reply to this topicStart new topic
> Dragonspeak Compile Verifier
Dream Dancer
post Mar 29 2011, 09:11 PM
Post #1
Group: Furres

Dream Dancer

First off, I'd like the thank the producers, the supporting staff, and my fellow actors, ...

Wait, wrong script.

After making that DragonSpeak Emit Tagger, I looked at the program, and decided to do something I've been meaning to do for a while. Make a DragonSpeak Compiler.

While this program does not produce an actual DSB like the Furcadia program does, it does a pretty mean job of crunching a DragonSpeak script into numbers. And producing lists of variables that are used in the program as well.

Plus it will compare the generated DSB against an actual DSB and flag any differences it finds between the two.

Not something for every day use, but a handy tool for the debugging toolbox.

DragonSpeak Compile Verifier explanation.
DragonSpeak Compile Verifier program.
Go to the top of the page
 
+Quote Post
super villain
post Sep 9 2011, 06:48 PM
Post #2
Group: Furres

super villain

I tried using this to count my variables and strings, but for some reason it wont show either of those. It says there were no errors and it would compile etc.
do you know any reason why this would be the case?

A couple times I tried to count the ds lines and it said 'scan aborted at line 2.'
Go to the top of the page
 
+Quote Post
Dream Dancer
post Sep 9 2011, 08:24 PM
Post #3
Group: Furres

Dream Dancer

Alrighty then.

I think I fixed the scan aborted issue, seems I wasn't clearing the ExitScan variable before the load attempt, ... (Uploaded the fix.)

As for why it's not showing your variables? Not sure, I'd need to get a copy of your DS to run it through the debugger and see what the parser is parsing.
Go to the top of the page
 
+Quote Post
super villain
post Sep 13 2011, 07:49 AM
Post #4
Group: Furres

super villain

Do you have an email I could send it to?

I tried just this and it wouldn't work, but a lot of my random dreams worked, its weird!

DragonSpeak

DSPK V04.00 Furcadia

(0:31) When a furre says {t},
(5:384) set variable %apos to the x,y position (1,2)

*Endtriggers* 8888 *Endtriggers*

Go to the top of the page
 
+Quote Post
Dream Dancer
post Sep 13 2011, 02:07 PM
Post #5
Group: Furres

Dream Dancer

Whispered email address to you.
Go to the top of the page
 
+Quote Post
Dream Dancer
post Sep 14 2011, 06:58 PM
Post #6
Group: Furres

Dream Dancer

The script you sent does open in the program, and it does report a few issues with the script, for example:
(5:311) use variable %tool&pastex[11] as an array, and set entry 0 of it to 0
I'm not sure if you can use the ampersand as part of a variable name.

Aside from that, it's got 61 variables, 40 strings, 225 text lines, and should come out as 1658 lines of DragonSpeak when uploaded.

P.S. That short two liner works as well.
Go to the top of the page
 
+Quote Post
super villain
post Sep 14 2011, 10:01 PM
Post #7
Group: Furres

super villain

So what did you do to get it to work? O.o

Btw & seems to be working fine for me. I normally dont use stuff like that in names but I had just figured out how to use the .y of an array so felt the need to name it for two functions like that:P
Go to the top of the page
 
+Quote Post
Dream Dancer
post Sep 14 2011, 10:36 PM
Post #8
Group: Furres

Dream Dancer

Didn't do anything to either my program, or the source, it just, worked, ...

P.S. Am going to look into that usage of & in variable names period, if it produces a unique index into the table for type&more vs type or typemore, then I'll include it into the valid variable letter validator.
Go to the top of the page
 
+Quote Post
Treeki
post Sep 15 2011, 08:31 AM
Post #9
Group: Furres

Treeki

Regular variable names accept any character except for space, carriage return, line feed and: ( ) [ ] . ,
String variable names only accept letters and numbers.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 17th May 2012 - 12:03 AM