Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
Printer:-AddOperator - add translation for operator
Printer:-GetOperator - get translation for operator
Calling Sequence
Printer:-AddOperator(operatorname = translation)
Printer:-GetOperator(operatorname)
Parameters
Printer
-
Printer module
operatorname
name; operator supported by CodeGeneration
translation
string; equivalent of operator in target language
Description
The AddOperator command defines a string representing the a prefix unary or infix binary operator in a Printer module corresponding to a target language.
The operatorname parameter can be one of the following members of CodeGeneration:-Names: And, Not, Or, Equal, Less, LessEqual, NotEqual, Power, Product, Sum, Inverse, Negation, Exponentiation, Multiplication, Addition, Subtraction, Division, Assignment.
The GetOperator command returns the string representing the target language equivalent for operatorname.
Examples
Define a language that resembles C, but uses . for multiplication.
LanguageDefinition[Define]( "C_with_dot", extend="C", AddOperator( Names:-Multiplication = "." ) ): p := proc(x,y) 2*x end proc: Translate(p, language="C_with_dot");
int p (int x, double y) { return(2 . x); }
See Also
Names, Printer
Download Help Document
Copyright © MathResources Inc. All Rights Reserved.
www.mathresources.com