ユーザー入力は、a:b> c> d>e...などの形式で与えられます。入力を:(a、>(b、>(c、>(d、e)))に解析したいのですが、それは可能でしょうか?それを行うための提案はありますか?これでテストしました
prepare:-
op(750,xfx,user:(:)), % change the default priority of : and >
op(700,xfx,user:(>)),
display(a: b > c),%this one worked fine and
%the display value is :(a,>(b,c))
display(a: b > c > d ). % I cannot have this works,
%the error ERROR:
%Syntax error:
%Operator priority clash is thrown.
入力は変更できません。どんな提案でもありがたいです。ありがとう!