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

org.modelcc.language.LanguageSpecification Maven / Gradle / Ivy

Go to download

ModelCC is a model-based parser generator (a.k.a. compiler compiler) that decouples language specification from language processing, avoiding some of the problems caused by grammar-driven parser generators. ModelCC receives a conceptual model as input, along with constraints that annotate it. It is then able to create a parser for the desired textual language and the generated parser fully automates the instantiation of the language conceptual model. ModelCC also includes a built-in reference resolution mechanism that results in abstract syntax graphs, rather than mere abstract syntax trees.

The newest version!
/*
 * ModelCC, distributed under ModelCC Shared Software License, www.modelcc.org
 */

package org.modelcc.language;

import java.io.Serializable;

import org.modelcc.language.lexis.LexicalSpecification;
import org.modelcc.language.syntax.SyntaxSpecification;

/**
 * Language specification.
 * 
 * @author Luis Quesada ([email protected])
 */
public class LanguageSpecification implements Serializable {

    /**
     * Lexical specification.
     */
    private LexicalSpecification lexicalSpecification;

    /**
     * Syntactic specification.
     */
    private SyntaxSpecification syntacticSpecification;

    /**
     * Constructor
     * @param lexicalSpecification the lexical specification.
     * @param syntacticSpecification the syntactic specification.
     */
    public LanguageSpecification (LexicalSpecification lexicalSpecification,SyntaxSpecification syntacticSpecification) 
    {
        this.lexicalSpecification = lexicalSpecification;
        this.syntacticSpecification = syntacticSpecification;
    }

    /**
     * @return the lexicalSpecification
     */
    public LexicalSpecification getLexicalSpecification() {
        return lexicalSpecification;
    }

    /**
     * @return the syntacticSpecification
     */
    public SyntaxSpecification getSyntacticSpecification() {
        return syntacticSpecification;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy