Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Are state machines just for parsing?

by osunderdog (Deacon)
on Dec 08, 2004 at 15:57 UTC ( #413235=note: print w/replies, xml ) Need Help??

in reply to Re^2: Are state machines just for parsing?
in thread Are state machines just for parsing?

To mis-quote a former US President:

It depends on how you parse "Parse".

In some sense receiving an event is very much like looking at the next character in a file. You either expect it or you don't. It all depends on what your language is.

Someone pointed out FOLDOC eariler so here's a reference to Parser.

"Look, Shiny Things!" is not a better business strategy than compatibility and reuse.

  • Comment on Re^3: Are state machines just for parsing?

Replies are listed 'Best First'.
Re^4: Are state machines just for parsing?
by talexb (Canon) on Dec 08, 2004 at 16:43 UTC

    Well, m-w defines parse as follows:

      1. : to resolve (as a sentence) into component parts of speech and describe them grammatically
      2. : to describe grammatically by stating the part of speech and explaining the inflection and syntactical relationships
    1. : to examine in a minute way : analyze critically [parses appellate court opinions]
    So to use 'parse' as the verb that means 'look at what actions are happening and respond in a certain manner' is being generous.

    I think this is a case where we'll have to agree to disagree.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      It's worth noting that your source doesn't even have an entry for the programming sense of "parse", and so seems an odd way to back up your argument. AHD's entry for "parse" (4 ed., via contains:

      parse v. tr. ... 4. Computer Science: To analyze or separate (input, for example) into more easily processed components.

      That seems to encompass what Anonymonk described as "parsing" -- analyzing (TCP/IP) input into more easily processed components. It's still not in my lexicon with that broad a sense, though; my take is probably closer to M-W sense 1.1, without restricting the domain to { things that have "component parts of speech" } (i.e. the first M-W sense without limiting it to "natural" languages).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413235]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-06-18 22:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.