/* (c) https://github.com/MontiCore/monticore */ package de.monticore.statements; /* This is a MontiCore stable grammar. * Adaptations -- if any -- are conservative. */ import de.monticore.statements.*; /** * This grammar defines the Java-like synchronized statement. * The statement is extracted into its own grammar because in * many languages that use statements, synchronization is done in * different forms and sucgh this statement isn't needed. * * This grammar is part of a hierarchy of statements, namely * * statements/MCStatementsBasis.mc4 * * -- statements/MCAssertStatements.mc4 * * -- statements/MCVarDeclarationStatements.mc4 * * -- -- statements/MCArrayStatements.mc4 * * -- -- statements/MCCommonStatements.mc4 * * -- -- -- statements/MCExceptionStatements.mc4 * * -- -- -- statements/MCSynchronizedStatements.mc4 * * -- statements/MCLowLevelStatements.mc4 * * -- statements/MCReturnStatements.mc4 * * and the composition of all statement grammars to full Java: * * -- -- statements/MCFullJavaStatements.mc4 * */ component grammar MCSynchronizedStatements extends MCCommonStatements { SynchronizedStatement implements MCStatement = "synchronized" "(" Expression ")" MCJavaBlock ; }