Examples of IndexedVector


Examples of net.sf.jcontracts.antlr.collections.impl.IndexedVector

    }

    public final void grammarFile(Hierarchy hier, String file) throws ParserException
    {
        Token hdr = null;
        IndexedVector opt = null;
        try
        {
            if (la_1 == 4)
            {
                hdr = LT(1);
View Full Code Here

Examples of net.sf.jcontracts.antlr.collections.impl.IndexedVector

    public final IndexedVector optionSpec(Grammar gr) throws ParserException
    {
        Token op = null;
        Token rhs = null;
        IndexedVector options = new IndexedVector();
        try
        {
            match(17);
            int _cnt = 0;
            do
            {
                if (la_1 == 7)
                {
                    op = LT(1);
                    match(7);
                    rhs = LT(1);
                    match(18);
                    Option newOp = new Option(op.getText(), rhs.getText(), gr);
                    options.appendElement(newOp.getName(), newOp);
                    if (rhs.getText().equals("tokdef"))
                    {
                        gr.specifiedVocabulary = true;
                    }
                }
View Full Code Here

Examples of net.sf.jcontracts.antlr.collections.impl.IndexedVector

        Token r = null;
        Token arg = null;
        Token ret = null;
        Token init = null;
        Token blk = null;
        IndexedVector o = null;
        String vis = null;
        boolean bang = false;
        try
        {
            switch (la_1)
View Full Code Here

Examples of net.sf.jcontracts.antlr.collections.impl.IndexedVector

    public GrammarFile(String f)
    {
        expanded = false;
        fileName = f;
        grammars = new IndexedVector();
    }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.IndexedVector

    protected boolean expanded = false// any grammars expanded within?
  protected org.jostraca.comp.antlr.Tool tool;

    public GrammarFile(org.jostraca.comp.antlr.Tool tool, String f) {
        fileName = f;
        grammars = new IndexedVector();
        this.tool = tool;
    }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.IndexedVector

        this.antlrTool = tool;
    }

    public void addOption(Option o) {
        if (options == null) {  // if not already there, create it
            options = new IndexedVector();
        }
        options.appendElement(o.getName(), o);
    }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.IndexedVector

        // track whether a grammar file needed to have a grammar expanded
        GrammarFile gf = hier.getFile(getFileName());
        gf.setExpanded(true);

        // Copy rules from supergrammar into this grammar
        IndexedVector inhRules = superG.getRules();
        for (Enumeration e = inhRules.elements(); e.hasMoreElements();) {
            Rule r = (Rule)e.nextElement();
            inherit(r, superG);
        }

        // Copy options from supergrammar into this grammar
        // Modify tokdef options so that they point to dir of enclosing grammar
        IndexedVector inhOptions = superG.getOptions();
        if (inhOptions != null) {
            for (Enumeration e = inhOptions.elements(); e.hasMoreElements();) {
                Option o = (Option)e.nextElement();
                inherit(o, superG);
            }
        }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.IndexedVector

    protected boolean expanded = false// any grammars expanded within?
  protected org.jostraca.comp.antlr.Tool tool;

    public GrammarFile(org.jostraca.comp.antlr.Tool tool, String f) {
        fileName = f;
        grammars = new IndexedVector();
        this.tool = tool;
    }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.IndexedVector

        this.antlrTool = tool;
    }

    public void addOption(Option o) {
        if (options == null) {  // if not already there, create it
            options = new IndexedVector();
        }
        options.appendElement(o.getName(), o);
    }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.IndexedVector

        // track whether a grammar file needed to have a grammar expanded
        GrammarFile gf = hier.getFile(getFileName());
        gf.setExpanded(true);

        // Copy rules from supergrammar into this grammar
        IndexedVector inhRules = superG.getRules();
        for (Enumeration e = inhRules.elements(); e.hasMoreElements();) {
            Rule r = (Rule)e.nextElement();
            inherit(r, superG);
        }

        // Copy options from supergrammar into this grammar
        // Modify tokdef options so that they point to dir of enclosing grammar
        IndexedVector inhOptions = superG.getOptions();
        if (inhOptions != null) {
            for (Enumeration e = inhOptions.elements(); e.hasMoreElements();) {
                Option o = (Option)e.nextElement();
                inherit(o, superG);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.