Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Printer:-Endline - mark end of a printed line
Calling Sequence
Printer:-Endline()
Parameters
Printer
-
Printer module
Description
When used as an argument to a Print command, Endline inserts an end-of-line delimiter into the printed output.
The actual string printed when Endline is encountered is determined by the language attribute Endline. As there are several platform-specific conventions for delimiting the end of a line, you may want to explicitly set the value of Endline when defining a language.
Examples
Define a language EndlineExample in which statements are indented and appended with a semicolon and "\n".
LanguageDefinition[Define]("EndlineExample", AddPrintHandler( Names:-Statement = proc(x) Printer:-Print( Printer:-Indent(), x, ";", Printer:-Endline() ) end proc ), SetLanguageAttribute( "Endline" = "\n" ), AddFunction( "f", anything::anything, "f" ) ); Translate(f(x), language = "EndlineExample", resultname = t);
t := f(x);
See Also
Language Attributes, Print, Printer
Download Help Document
Copyright © MathResources Inc. All Rights Reserved.
www.mathresources.com