Page 1 of 1
Documentation updated: Parser
Posted: Thu Jul 31, 2008 6:32 pm
by giliath
I have done some slight updating on the parser documentation. You can get at the links here:
http://rptools.net/doku.php?id=maptooldoc_1_3:chat
Scroll down to the bottom and there are 2 links in the Parser Macro Functions section.
http://rptools.net/doku.php?id=parser
and
http://rptools.net/doku.php?id=dicelib: ... 0functions
Right now dicelib:custom functions just contains a link to the subversion repository. I need to give a list of all custom functions we have added to the dicelib library, but that will be another day.
Posted: Thu Jul 31, 2008 6:37 pm
by RPTroll
wow. when did occ get added?
Posted: Thu Jul 31, 2008 6:50 pm
by giliath
RPTroll wrote:wow. when did occ get added?
In a world of acronyms, here is how I parsed this statement:
wow. when did
oracle county choppers get added?
wow. when did
Office of the Comptroller of the Currency get added?
wow. when did
Onondaga Community College get added?
Could you clarify please?
Posted: Thu Jul 31, 2008 7:19 pm
by RedDog
Goliath, the "<=" did not keep it's format on the less than or equal to in the Logical Operations table.
Posted: Thu Jul 31, 2008 9:48 pm
by salmelo
Posted: Thu Jul 31, 2008 9:59 pm
by Naryt
salmelo wrote:
my guess is he meant ooc
If so, I added the /ooc command a while ago (May I think).
Posted: Fri Aug 01, 2008 12:54 am
by trevor
Documentation ?! Awesome !
Posted: Fri Aug 01, 2008 7:49 am
by RPTroll
salmelo wrote:
my guess is he meant ooc
The correct answer is Orange County Choppers
Posted: Fri Aug 01, 2008 9:07 am
by Orchard
And while he works on that, some other people are working on a rather more verbose version of documentation.
Samples, screenshots, and more!
One might even go so far as to call it a manual.
In fact, I'd rather see Giliath work on the code, and leave those of us NOT inclined to program to work on documentation, since we can read the code well enough.
Quick question--in reading the code, and in a few tests, I had accidentally discovered the openTest() function. I also noticed it's aliases: something like 5o or 4O will also call it, which is somewhat annoying.
I had a property called "Weapon1Ext5On" that was calling this function, which was REALLY confusing me for a while until I figured out what was happening. Obviously it shouldn't have been parsing QUITE that aggressively, but having the 'o' or 'O' as aliases for the openTest() function is perhaps a bit much (perhaps).
The other question is: even though I see what it does, I'm not sure that I know how it's useful beyond debugging. I'm guessing that it's purely a debug tool? Or am I missing something?
Re: Documentation updated: Parser
Posted: Wed Aug 06, 2008 7:54 am
by Esaquam
Thank you!
Operator precedence and order of evaluation would be nice.
Re: Documentation updated: Parser
Posted: Wed Aug 06, 2008 9:18 am
by Mathemagician
Esaquam wrote:
Thank you!
Operator precedence and order of evaluation would be nice.
That's what the first line says, "The full PEMDAS" order of evaluation, though if you don't know what order of evaluation might be, I bet that doesn't help
Re: Documentation updated: Parser
Posted: Wed Aug 06, 2008 10:58 am
by Esaquam
Mathemagician wrote:Esaquam wrote:
Operator precedence and order of evaluation would be nice.
That's what the first line says, "The full PEMDAS" order of evaluation, though if you don't know what order of evaluation might be, I bet that doesn't help
Sorry, I was looking at the table of logical ops when I wrote that. Isn't PEMDAS only the arithmetic/algebraic ops, Paren Exp Mult Div Add Sub? It doesn't cover logical, compare, unary, or assignment operations.
Side note: I was a math undergrad, CS grad, spent an early part of my career doing compilers, and I don't think I've actually seen the term "PEMDAS" any where else since... grade school? I actually googled it when I first looked at the parser page, immediately went 'oh, right'. Curious as to whether the use is more common in other contexts now? That is, does it do it's job as a documentation phrase?