Search in sources :

Example 11 with ConstantDescriptor

use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.constant.ConstantDescriptor in project TrufflePascal by Aspect26.

the class FatalError method RecordVariantPart.

void RecordVariantPart() {
    Expect(23);
    OrdinalDescriptor selectorType = RecordVariantSelector();
    Expect(13);
    List<ConstantDescriptor> caseConstants = RecordVariants();
    factory.assertLegalsCaseValues(selectorType, caseConstants);
}
Also used : ConstantDescriptor(cz.cuni.mff.d3s.trupple.parser.identifierstable.types.constant.ConstantDescriptor) OrdinalDescriptor(cz.cuni.mff.d3s.trupple.parser.identifierstable.types.complex.OrdinalDescriptor)

Example 12 with ConstantDescriptor

use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.constant.ConstantDescriptor in project TrufflePascal by Aspect26.

the class FatalError method ConstantDefinition.

void ConstantDefinition() {
    Expect(1);
    Token identifier = t;
    Expect(12);
    ConstantDescriptor constant = Constant();
    factory.registerConstant(identifier, constant);
}
Also used : ConstantDescriptor(cz.cuni.mff.d3s.trupple.parser.identifierstable.types.constant.ConstantDescriptor)

Aggregations

ConstantDescriptor (cz.cuni.mff.d3s.trupple.parser.identifierstable.types.constant.ConstantDescriptor)12 OrdinalDescriptor (cz.cuni.mff.d3s.trupple.parser.identifierstable.types.complex.OrdinalDescriptor)4 TypeDescriptor (cz.cuni.mff.d3s.trupple.parser.identifierstable.types.TypeDescriptor)2