in a programing language how do you represent grammer rules?
say we have a hypothetical programming language called ABED
ABED can have only one type of loop. And it's a while loop. The while loop condition should be a int and if the value of the int is greater than zero it means true otherwise it means false;
How do i represent the above grammer in C.