Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
BadBoy
- a hill giant

- Posts: 158
- Joined: Thu Sep 05, 2002 11:53 am
Post
by BadBoy » Tue Oct 01, 2002 9:37 pm
what is "parse"? I am having troubles

-
DeathSpiral
- a ghoul

- Posts: 95
- Joined: Thu Aug 22, 2002 6:31 pm
Post
by DeathSpiral » Tue Oct 01, 2002 9:48 pm
dictionary.com wrote:parse (pärs)
v. parsed, pars·ing, pars·es
v. tr.
- To break (a sentence) down into its component parts of speech with an explanation of the form, function, and syntactical relationship of each part.
- To describe (a word) by stating its part of speech, form, and syntactical relationships in a sentence.
- To examine closely or subject to detailed analysis, especially by breaking up into components: “What are we missing by parsing the behavior of chimpanzees into the conventional categories recognized largely from our own behavior?” (Stephen Jay Gould).
- To make sense of; comprehend: I simply couldn't parse what you just said.
- Computer Science. To analyze or separate (input, for example) into more easily processed components.
v. intr.
To admit of being parsed: sentences that do not parse easily.
[Probably from Middle English pars, part of speech, from Latin pars (rtinis), part (of speech). See per-2 in Indo-European Roots.]parser n.
Source: The American Heritage® Dictionary of the English Language, Fourth Edition
Copyright © 2000 by Houghton Mifflin Company.
Published by Houghton Mifflin Company. All rights reserved.
Erm, yeah, so I guess I'm feeling a little sarcastic...
I am orc pawn, hear me yell for centurians...
-
Truespirit
- decaying skeleton

- Posts: 7
- Joined: Tue Oct 08, 2002 7:58 am
Post
by Truespirit » Thu Oct 17, 2002 1:04 pm
The parser checks the syntax of your script to ensure that it can actually understand what you are trying to get each command to do.
Every language has a set syntax - a list of rules for its contruction is you will. (Try looking up yacc and lex on the internet for examples of computer language syntax parsers for example...).
If you are getting parse errors, then it is trying to tell you that what you have written does not make syntactical sense. Therefore it has no way to proceed in attempting to run your macro.
You don't mention the wording returned to you and personally I've never had a parse error with scripts in MQ so I wouldn't know, but quite often computer language tools will give you a line where they lose syntax integrity. I would suggest if it does give you this information that you read back from that line in order to figure out what you have done wrong.
Truespirit
-
drastic ape
- a lesser mummy

- Posts: 30
- Joined: Fri Aug 23, 2002 4:43 am
Post
by drastic ape » Thu Oct 17, 2002 7:00 pm
Usually a "parse" error is something really simple. Something like "/depay 0" insteade of "/delay 0" will cause an error and you'll see something similar to "couldn't parse /depay 0". Sometimes it's a sub that isn't spelled the same as where it's called. I'm very sloppy at coding and I run into this crap enough. It's not usually anything other than a bad keystroke on the part of whoever wrote/changed the maco.
It can also be something that MQ has been told to find in the script but isn't there. Basically just a bug for you to squish.