Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Printer:-Print - Print expression
Printer:-PrintBinary - Print a binary operation
Printer:-PrintDelimitedList - Print list elements delimited by specified expression
Printer:-PrintParentheses - Print expression contained in parentheses if needed
Printer:-PrintStatementBlock - Print a block of statements
Printer:-PrintUnary - Print a unary operation
Calling Sequence
Printer:-Print(expr)
Printer:-PrintBinary(opname, expr1, expr2)
Printer:-PrintDelimitedList(l, delimiter)
Printer:-PrintParentheses(expr, icname)
Printer:-PrintStatementBlock(expr)
Printer:-PrintUnary(opname, expr)
Parameters
Printer
-
Printer module
expr, expr1, expr2
Intermediate Code expressions
delimiter
string or Intermediate Code expression
opname
operator name where opname is one of Addition, Exponentiation, Division, Multiplication, and Subtraction
icname
member of CodeGeneration:-Names subpackage
Description
The process of translating the intermediate form into a string equivalent compatible with a specific programming language is known as printing.
The Print command is the basic tool for printing intermediate code. Given an intermediate code expression expr, Print calls the Print handler for and passes the operands of expr as arguments. In this way it traverses the intermediate code tree.
The PrintUnary, PrintBinary commands print prefix unary and infix binary operations, respectively. The name opname must have been previously defined with AddOperator, and must be one of the operators listed in AddOperator.
The PrintDelimitedList command prints the elements of the list l delimited with the expression delimiter. It is equivalent to Print(op(ListTools:-Join(l, delimiter))).
The command prints expr, contained within parentheses if and only if the precedence of icname is greater than that the precedence of op(0, expr). It is useful for correct printing of infix binary operators.
The command prints expr with indentation, and contained within a program block in the language.
For more information about Printer functions, see Printer.
See Also
AddOperator, Intermediate Code Structure, Printer
Download Help Document
Copyright © MathResources Inc. All Rights Reserved.
www.mathresources.com