get type of IC expression - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Code Generation Package : Language Definition : Printer : CodeGeneration/LanguageDefinition/Printer/GetExpressionType

Printer:-GetExpressionType - get type of IC expression

Calling Sequence

Printer:-GetExpressionType(expr)

Parameters

Printer

-

Printer module

expr

-

Intermediate Code expression

Description

• 

When called during the printing of the intermediate form, the GetExpressionType command returns a CodeGeneration:-Names:-Type or CodeGeneration:-Names:-ArrayType expression corresponding to the type of the intermediate form expression expr in the present scope.

• 

Note that the result of GetExpressionType is dependent on the current position within the intermediate form.  For example, the function call GetExpressionType(Name("x")) may return different results when called during the printing of a procedure with a local variable x than when called outside the printing of this procedure.

See Also

GetScopeName, GetScopeStructure, Printer


Download Help Document

Copyright © MathResources Inc. All Rights Reserved.

www.mathresources.com

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam