use of de.prob.translator.types.Atom in project probparsers by bendisposto.
the class TestTranslator method testTranslateIdentifier.
@Test
public void testTranslateIdentifier() throws Exception {
Atom idx = (Atom) Translator.translate("x");
assertEquals(idx.getValue(), "x");
}
use of de.prob.translator.types.Atom in project probparsers by bendisposto.
the class TranslatingVisitor method caseARecEntry.
@Override
public void caseARecEntry(ARecEntry node) {
Atom key = null;
BObject value = null;
node.getIdentifier().apply(this);
key = (Atom) this.getResult();
node.getValue().apply(this);
value = this.getResult();
this.setResult(new RecordEntry(key, value));
}