translate the letter synonyms for operators.

This commit is contained in:
steve 1999-05-17 04:53:47 +00:00
parent 10ffaeda90
commit fe8ca1f72f
1 changed files with 22 additions and 1 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) #if !defined(WINNT)
#ident "$Id: design_dump.cc,v 1.23 1999/05/10 00:16:58 steve Exp $" #ident "$Id: design_dump.cc,v 1.24 1999/05/17 04:53:47 steve Exp $"
#endif #endif
/* /*
@ -465,15 +465,33 @@ void NetEBinary::dump(ostream&o) const
case 'a': case 'a':
o << "&&"; o << "&&";
break; break;
case 'E':
o << "===";
break;
case 'e': case 'e':
o << "=="; o << "==";
break; break;
case 'G':
o << ">=";
break;
case 'l':
o << "<<";
break;
case 'L':
o << "<=";
break;
case 'n': case 'n':
o << "!="; o << "!=";
break; break;
case 'N':
o << "!==";
break;
case 'o': case 'o':
o << "||"; o << "||";
break; break;
case 'r':
o << ">>";
break;
} }
o << "("; o << "(";
right_->dump(o); right_->dump(o);
@ -580,6 +598,9 @@ void Design::dump(ostream&o) const
/* /*
* $Log: design_dump.cc,v $ * $Log: design_dump.cc,v $
* Revision 1.24 1999/05/17 04:53:47 steve
* translate the letter synonyms for operators.
*
* Revision 1.23 1999/05/10 00:16:58 steve * Revision 1.23 1999/05/10 00:16:58 steve
* Parse and elaborate the concatenate operator * Parse and elaborate the concatenate operator
* in structural contexts, Replace vector<PExpr*> * in structural contexts, Replace vector<PExpr*>