Thread: semantic analyer..need help!!!

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Unhappy semantic analyer..need help!!!

    hey guys does anybody know how to come up with a program with the following output for a semantic analyzer
    (please ignore the dots...)

    example output: position = initial + rate * 60


    ............................ =
    .............................|
    ..................--------------------
    ................. |.......................|
    ..................position...........+
    ..........................................|
    ........................... --------------------
    ............................|..................... ..|
    .........................initial.................. .*
    .................................................. ..|
    .................................... -------------------
    ....................................|............. ..........|
    ...................................rate........... .......60

    anykind of help is need and appreciated..thanks..
    Last edited by Sakuragi; 02-07-2002 at 10:42 AM.

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Well, I don't know exactly what you expect. But you could put expressions into a tree. An expression like you gave can be stored in a binary tree and then being evaluated.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 02-19-2009, 11:49 PM