case 2
fun1 f x = x;
k x = x;
fun2 = fun1 k 100;
How can my BNFC code know that what k is (a function or a variable) in
fun2. I mean in case 1 k is a variable but in case2 k is a function.
My code always regard k as a function but not a variable.
I define the application of function as
DFun. Exp3 ::= Ident [Exp] .
Is this ok or bad?
Thanks in advance.