aspose file tools*
The moose likes JSP and the fly likes i want to draw logical gates (just and/ or ) with logic statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "i want to draw logical gates (just and/ or ) with logic statement" Watch "i want to draw logical gates (just and/ or ) with logic statement" New topic
Author

i want to draw logical gates (just and/ or ) with logic statement

vahid samimi
Greenhorn

Joined: Jul 30, 2011
Posts: 1
hi all
i have a textbox .user can enter logic statement into. (attached File)
and i want when user clicked submit button , show logical gate.
help me.
tnx


[Thumbnail for untitled.JPG]

Ahmad Yazdankhah
Greenhorn

Joined: Jul 30, 2011
Posts: 8

Do you expect a piece of code for this?
I don't get what you mean by: please help?
What's your question?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12804
    
    5
Logically the first step would be parsing the statement into entities and operators, how far have you gotten on this problem?

Bill

My choice would be parsing to RPN because a + b becomes a b plus - close to the description of an AND gate.

 
Consider Paul's rocket mass heater.
 
subject: i want to draw logical gates (just and/ or ) with logic statement