4
9
2010
1

tmp

 

void S() throws SyntacticException{
    if(lookahead.equals(new Token('('))){
        match(new Token('('));
        L();
        match(new Token(')'));
    } else if(lookahead.equals(new Token('a'))){
        match(newToken('a'));
    }
}

void L() throws SyntacticException{
    if(lookahead.equals(new Token('('))){
        match(new Token('('));
        L();
        match(new Token(')'));
    } else if(lookahead.equals(new Token('a'))){
        match(newToken('a'));
    }
    Lp();
}

void Lp() throws SyntacticException{
    if(lookahead.equals(new Token(','))){
        match(new Token(','));

        if(lookahead.equals(new Token('('))){
            match(new Token('('));
            L();
            match(new Token(')'));
        }else{
            match(new Token('a'));
        }
        match(Lp);
    }else{
        //good
    }
}

null

Category: 未分类 | Tags: | Read Count: 1012
Avatar_small
jnanabhumiap.in 说:
2024年1月24日 18:01

JNANABHUMI AP provides all latest educational updates and many more. The main concept or our aim behind this website has been the will to provide resources full information on each topic which can be accessed through Internet. To ensure that every readers get’s what important and worthy about the topic they search and link to hear from us. jnanabhumiap.in Jnanabhumi AP is a startup by passionate webmasters and bloggers who have passion to provide engaging content which is accurate, interesting and worthy to read. We are mope like a web community where you can find different information’s, resources, topics on day to day incidents or news. We provide you the finest of web content on each and every topics possible with help of editorial and content team.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com