Commit 40f76601 authored by Thomas Michael Timmermanns's avatar Thomas Michael Timmermanns
Browse files

added first symboltable classes

parent c4048a00
......@@ -2,13 +2,13 @@ package de.monticore.lang.monticar;
grammar CNNArch extends de.monticore.common.Common {
Architecture = "architecture"
name:Name "("
inputPort:Name& ")" "{"
(MainLayer)+
outputPort:Name& "="
OutputLayer
"}";
symbol scope Architecture = "architecture"
name:Name& "("
inputPort:Name& ")" "{"
(MainLayer)+
outputPort:Name& "="
OutputLayer
"}";
interface Layer;
ast Layer = method ASTMethod getMethod(){};
......
/**
*
* ******************************************************************************
* MontiCAR Modeling Family, www.se-rwth.de
* Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
* All rights reserved.
*
* This project is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this project. If not, see <http://www.gnu.org/licenses/>.
* *******************************************************************************
*/
package de.monticore.lang.monticar.cnnarch._symboltable;
public class ArchitectureSymbol extends de.monticore.symboltable.CommonScopeSpanningSymbol {
public static final ArchitectureKind KIND = new ArchitectureKind();
public ArchitectureSymbol(String name) {
super(name, KIND);
}
}
......@@ -42,10 +42,7 @@ public class CNNArchLanguage extends CNNArchLanguageTOP {
@Override
protected void initResolvingFilters() {
super.initResolvingFilters();
setModelNameCalculator(new CNNArchModelNameCalculator());
}
@Override
public Optional<? extends SymbolTableCreator> getSymbolTableCreator(ResolvingConfiguration resolvingConfiguration, MutableScope mutableScope) {
return null;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment