



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




What do we find in a module or package declaration?
The module/package declares an instance, not a template
Compilation challenges
The AST node for a package will include:
Semantic processing for a package AST node:
If there is a separate package body AST node:
Syntax is identical to record components, generating the same AST structure
Look-up mechanism works just like for records
Minor extensions are needed to handle packages as an alternative wherever records are expected
A class looks much like a package, but it defines a template rather than a single instance