inp_modify_exp(), remove operator rewrite `**' --> `^'
Thats implemented in the lexer for B expressions, ( `PTlex()' in src/spicelib/parser/inpptree.c )
This commit is contained in:
parent
70ad8cce5f
commit
c79d2482ae
|
|
@ -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…
Reference in New Issue