Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vahid samimi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
untitled.JPG
[Thumbnail for untitled.JPG]
 
Ahmad Yazdankhah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic