All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chapi.ast.antlr.CPP14ParserBase Maven / Gradle / Ivy

Go to download

Chapi is A common language meta information convertor, convert different languages to same meta-data model

The newest version!
package chapi.ast.antlr;

import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.ParseTree;

public abstract class CPP14ParserBase extends Parser {
    protected CPP14ParserBase(TokenStream input) {
        super(input);
    }

    protected boolean IsPureSpecifierAllowed() {
        try {
            ParserRuleContext x = this._ctx;// memberDeclarator
            ParseTree c = x.getChild(0).getChild(0);
            ParseTree c2 = c.getChild(0);
            ParseTree p = c2.getChild(1);
            if (p == null) return false;
            return (p instanceof CPP14Parser.ParametersAndQualifiersContext);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy