Browse Source

inp_modify_exp(), remove operator rewrite `**' --> `^'

Thats implemented in the lexer for B expressions,
( `PTlex()' in src/spicelib/parser/inpptree.c )
pre-master-46
rlar 12 years ago
parent
commit
c79d2482ae
  1. 7
      src/frontend/inpcom.c

7
src/frontend/inpcom.c

@ -5517,11 +5517,12 @@ inp_modify_exp(char* expr)
(c == '+') || (c == '?') || (c == ':'))
{
if ((c == '*') && (s[1] == '*')) {
c = '^';
wl->wl_word = tprintf("**");
s += 2;
} else {
wl->wl_word = tprintf("%c", c);
s++;
}
wl->wl_word = tprintf("%c", c);
s++;
if (c == ')')
state = S_value;
else

Loading…
Cancel
Save