Thread: Parse trees for dummies?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I think you're on the verge of turning your tokenizer into a parser. It does not need to be more complicated than separating tokens from white space. Separating tokens like "j=+3" or "j+3" into parts of your language, like expression, operator, expression, is what the parser does.

    I can not think of a better time to remove excess white space than during tokenizing, either. You want parsing to be as easy as it can be so that it's correct.
    Last edited by whiteflags; 11-17-2019 at 04:27 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help in implementing N-ary trees or general trees in C.
    By Pro Neon in forum C Programming
    Replies: 3
    Last Post: 09-22-2017, 07:24 AM
  2. c for dummies
    By newprog82 in forum C Programming
    Replies: 3
    Last Post: 11-02-2010, 07:18 AM
  3. Binary Trees MINI MAXING, probability trees
    By curlious in forum General AI Programming
    Replies: 3
    Last Post: 09-30-2005, 10:57 AM
  4. C ++ for dummies...
    By tetraflare in forum C++ Programming
    Replies: 3
    Last Post: 11-15-2002, 09:34 PM
  5. traversing binary trees or partial trees
    By sballew in forum C Programming
    Replies: 4
    Last Post: 12-05-2001, 09:19 PM

Tags for this Thread