Previous: parse-body, Up: API


parse-declarations

Syntax

— Function: parse-declarations declarations-or-specifiers &optional compilation-env &key nostrip

⇒ declaration-env

Arguments and Values

declarations-or-specifiers
Either a list of declarations, or a list of declaration specifiers.
compilation-env
An environment object.
nostrip
A boolean.
declaration-env
A declaration-env

Description

The function parse-declarations returns a declaration-env that describes the declaration specifiers in declarations-or-specifiers. This declaration-env can be used to manipulate the declaration specifiers in various high-level ways, and finally to construct actual specifiers again.

If nostrip is true, declarations-or-specifiers should be a list of declaration specifiers rather than declarations.

Exceptional Situations

Signals an error of type TYPE-ERROR if the (implicit) specifiers in declarations-or-specifiers are not valid declaration specifiers.

See Also

analyze-declaration-specifier
build-declarations
declaration-env
filter-declaration-env
map-declaration-env
merge-declaration-envs
parse-body

Notes

The set of understood declaration specifiers can be extended by adding methods to the generic functions analyze-declaration-specifier and build-declaration-specifier.