semantic analyer..need help!!!

This is a discussion on semantic analyer..need help!!! within the C Programming forums, part of the General Programming Boards category; hey guys does anybody know how to come up with a program with the following output for a semantic analyzer ...

  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,386
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21