Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isA(TokenClass klassi) {
- if(this.tokens.get(this.currentIndex).getKl() == klassi){
- return true;
- }
- return false;
- }
- private boolean formalparams(){
- boolean result = formalparam();
- if (result) {
- int index;
- do {
- index = this.currentIndex;
- } while (isA(TokenClass.COMMA) && formalparam());
- this.currentIndex = index;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement