Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public parse_A() {
- ttype = getToken();
- if (ttype == atype)
- {
- parse_A();
- ttype = getToken();
- if (ttype == btype)
- print "A -> aAb";
- else
- syntax_error();
- }
- else if (ttype == btype || type == eof)
- {
- ungetToken();
- print "A -> epsilon";
- }
- else
- syntax_error();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement