String Manipulation in C

Posted by baris_a on Stack Overflow See other posts from Stack Overflow or by baris_a
Published on 2010-05-17T08:57:46Z Indexed on 2010/05/17 9:21 UTC
Read the original article Hit count: 266

Filed under:
|
|
|

Hi guys, I am helping my nephew for his C lab homework, it is a string manipulation assignment and applying Wang's algorithm.

Here is the BNF representation for the input.

<sequent> ::= <lhs> # <rhs>

<lhs> ::= <formulalist>| e
<rhs> ::= <formulalist>| e
<formulalist> ::= <formula>|<formula> , <formulalist>
<formula> ::= <letter>| - <formula>| (<formula><in?xop><formula>)
<in?xop> ::= & | | | >
<letter> ::= A | B | ... | Z

What is the best practice to handle and parse this kind of input in C? How can I parse this structure without using struct? Thanks in advance.

© Stack Overflow or respective owner

Related posts about string-manipulation

Related posts about c