Results 1 to 2 of 2

Thread: Parsing Algorithm (continued...)

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Location
    Philippines
    Posts
    2

    Parsing Algorithm (continued...)

    I used the expression parser of graphit! example program in vb-helper.com but it is still limited and it produce an error message when it encounters nested parenthesises with an operator after it like:
    sin(x+1)+1
    | |
    --|-
    this causes the error.

    How do you make an expression parser that can go about this error?
    Click here for the source code goto school activities and run IDE Grapher.exe
    need your help.
    K Otake

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151
    A Web search or a good library should provide all sorts of literature on parsing algebraic notation. Does a nearby college have computer sciience courses? If so, they should be able to recommend a source for this.

    Most of the algorithms translate to Reverse Polish notation, which is easy to use as the basis for machine language code or a VB program.

    The algorithms should not be difficult ot implement in almost any language.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width