use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.TypeDescriptor in project TrufflePascal by Aspect26.
the class FatalError method PointerType.
TypeDescriptor PointerType() {
TypeDescriptor typeDescriptor;
Expect(23);
Expect(1);
typeDescriptor = factory.createPointerType(t);
return typeDescriptor;
}
use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.TypeDescriptor in project TrufflePascal by Aspect26.
the class FatalError method TypeDefinition.
void TypeDefinition() {
Expect(1);
Token identifier = t;
Expect(13);
TypeDescriptor typeDescriptor = Type();
factory.registerNewType(identifier, typeDescriptor);
}
use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.TypeDescriptor in project TrufflePascal by Aspect26.
the class FatalError method RecordFieldList.
TypeDescriptor RecordFieldList() {
TypeDescriptor typeDescriptor;
if (la.kind == 1) {
RecordFixedPart();
if (recordVariantPartStarts()) {
Expect(8);
RecordVariantPart();
}
} else if (la.kind == 24) {
RecordVariantPart();
} else if (la.kind == 7 || la.kind == 8 || la.kind == 22) {
} else
SynErr(75);
if (la.kind == 8) {
Get();
}
typeDescriptor = factory.createRecordType();
return typeDescriptor;
}
use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.TypeDescriptor in project TrufflePascal by Aspect26.
the class FatalError method RecordVariant.
List<ConstantDescriptor> RecordVariant() {
List<ConstantDescriptor> caseConstants;
caseConstants = CaseConstantList();
Expect(25);
Expect(6);
TypeDescriptor type = RecordFieldList();
Expect(7);
return caseConstants;
}
use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.TypeDescriptor in project TrufflePascal by Aspect26.
the class FatalError method TypeDefinition.
void TypeDefinition() {
Expect(1);
Token identifier = t;
Expect(12);
TypeDescriptor typeDescriptor = Type();
factory.registerNewType(identifier, typeDescriptor);
}
Aggregations