MCPcopy Create free account
hub / github.com/Singular/Singular / iiTwoOps

Function iiTwoOps

Singular/ipshell.cc:88–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86/*0 implementation*/
87
88const char * iiTwoOps(int t)
89{
90 if (t<127)
91 {
92 STATIC_VAR char ch[2];
93 switch (t)
94 {
95 case '&':
96 return "and";
97 case '|':
98 return "or";
99 default:
100 ch[0]=t;
101 ch[1]='\0';
102 return ch;
103 }
104 }
105 switch (t)
106 {
107 case COLONCOLON: return "::";
108 case DOTDOT: return "..";
109 //case PLUSEQUAL: return "+=";
110 //case MINUSEQUAL: return "-=";
111 case MINUSMINUS: return "--";
112 case PLUSPLUS: return "++";
113 case EQUAL_EQUAL: return "==";
114 case LE: return "<=";
115 case GE: return ">=";
116 case NOTEQUAL: return "<>";
117 default: return Tok2Cmdname(t);
118 }
119}
120
121int iiOpsTwoChar(const char *s)
122{

Callers 9

newstructShowFunction · 0.70
iiExprArith2TabInternFunction · 0.70
iiExprArith1TabFunction · 0.70
iiExprArith3TabInternFunction · 0.70
iiExprArithMFunction · 0.70
PrintMethod · 0.70
grammar.ccFile · 0.70
iiReportMethodsFunction · 0.70
getMethod · 0.50

Calls 1

Tok2CmdnameFunction · 0.70

Tested by

no test coverage detected