Compaq AA-PWCBD-TE Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Oprogramowanie Compaq AA-PWCBD-TE. Compaq AA-PWCBD-TE User's Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 152
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
Guide to the DEC Text
ProcessingUtility
Order Number: AA–PWCBD–TE
April 2001
This manual introduces the DEC Text Processing Utility (DECTPU). It
is for experienced programmers as well as new users of DECTPU.
Revision/Update Information: This manual supersedes the Guide
to the DEC Text Processing Utility,
Version 3.1
Software Version: OpenVMS Alpha Version 7.3
OpenVMS VAX Version 7.3
The content of this manual has not
changed sinced OpenVMS Version 7.1
Compaq Computer Corporation
Houston, Texas
Przeglądanie stron 0
1 2 3 4 5 6 ... 151 152

Podsumowanie treści

Strona 1 - ProcessingUtility

Guide to the DEC TextProcessingUtilityOrder Number: AA–PWCBD–TEApril 2001This manual introduces the DEC Text Processing Utility (DECTPU). Itis for exp

Strona 2

Mail Compaq Computer CorporationOSSG Documentation Group, ZKO3-4/U08110 Spit Brook Rd.Nashua, NH 03062-2698How To Order Additional DocumentationUse th

Strona 3 - Contents

Lexical Elements of the DEC Text Processing Utility Language4.10 Lexical Keywords4.10.2 Specifying the Radix of Numeric ConstantsYou can specify const

Strona 4

5DEC Text Processing Utility ProgramDevelopmentPrevious chapters have described the lexical elements of the DECTPU language,such as data types, langua

Strona 5

DEC Text Processing Utility Program Development5.1 Creating DECTPU Programs• You can use executable statements either within procedures or outsideproc

Strona 6

DEC Text Processing Utility Program Development5.1 Creating DECTPU ProgramsOther possible reasons for a TPU$_STACKOVER condition are that you have too

Strona 7 - Examples

DEC Text Processing Utility Program Development5.1 Creating DECTPU ProgramsExample 5–3 Sample DECTPU Programs! Program 1! This program consists of a s

Strona 8

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPU• Menu_bar• Popup_attached_db• Popup_dialog_box• Popup_menu• Pulldo

Strona 9 - Reader’s Comments

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPU5.2.3 Global Selection SupportGlobal selection in DECwindows is a m

Strona 10 - Conventions

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPU5.2.3.4 Response to Requests for Information About the Global Selec

Strona 11 - Monospace text

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPU5.2.4.1 Background on DECwindows CallbacksA callback is a mechanism

Strona 12

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPU5.2.4.4 Internally Defined DECTPU Callback Routines with Widgets Not

Strona 13 - 1.1 Description of DECTPU

bold text This text style represents the introduction of a new term or thename of an argument, an attribute, or a reason.italic text Italic text indic

Strona 14 - 1.1.3 DECTPU Environments

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPU5.2.5 Using ClosuresWith DECwindows, you can specify a closure valu

Strona 15

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPUDECTPU converts the value you specify into the data type appropriat

Strona 16 - 1.3 Description of EVE

DEC Text Processing Utility Program Development5.2 Programming in DECwindows DECTPUSetting ResourcesWhen you use the SET (WIDGET) built-in procedure t

Strona 17 - 1.4 DECTPU Language

DEC Text Processing Utility Program Development5.3 Writing Code Compatible with DECwindows EVE5.3 Writing Code Compatible with DECwindows EVEThis sect

Strona 18

DEC Text Processing Utility Program Development5.3 Writing Code Compatible with DECwindows EVE• Use the MB1 mouse button with the Shift key to extend

Strona 19 - 1.4.5 User-Written Procedures

DEC Text Processing Utility Program Development5.4 Compiling DECTPU ProgramsTo see DECTPU messages while in EVE, use the BUFFER MESSAGEScommand. To re

Strona 20 - 1.6 Learning Path for DECTPU

DEC Text Processing Utility Program Development5.5 Executing DECTPU ProgramsAfter using the TPU command, suppose you used the following statement tocr

Strona 21 - Getting Started with DECTPU

DEC Text Processing Utility Program Development5.5 Executing DECTPU ProgramsBuffer-change journaling works properly with Ctrl/C. Therefore, if you are

Strona 22 - 2.1.2 Startup Files

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup Files5.6.3 Initialization FilesAn initialization file contains commands to be e

Strona 23

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup Files5.6.5 Using Section FilesA section file is the binary form of a program th

Strona 25

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup FilesThis command causes DECTPU to write the binary form of the file MY_APPLICA

Strona 26 - 2.4 Using Journal Files

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup FilesFor example, to add a program called MY_CUSTOMIZATIONS.TPU to the EVEsect

Strona 27 - 2.4.1 Keystroke Journaling

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup FilesExample 5–5 Source Code for Minimal Interface to DECTPU! MINI.TPU - minim

Strona 28

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup FilesWhenever you want to add new procedures, variables, learn sequences, or k

Strona 29 - 2.6.1 /CHARACTER_SET

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup FilesIn EVE, the code that implements the initialization sequence callsTPU$LOC

Strona 30 - 2.6.2 /COMMAND

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup FilesIf you name your command file TPU$COMMAND.TPU and it is in yourdefault dir

Strona 31 - 2.6.3 /CREATE

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup Files• Set formats for individual buffersEVE initialization files contain EVE c

Strona 32 - 2.6.5 /DISPLAY

DEC Text Processing Utility Program Development5.6 Using DECTPU Startup Files5.6.7.2 Using an EVE Initialization File During an Editing SessionTo exec

Strona 33 - 2.6.6 /INITIALIZATION

DEC Text Processing Utility Program Development5.7 Debugging DECTPU Programs5.7 Debugging DECTPU ProgramsThis section discusses the options you have f

Strona 34 - 2.6.8 /JOURNAL

DEC Text Processing Utility Program Development5.7 Debugging DECTPU ProgramsAfter setting breakpoints, use the GO command to switch control of executi

Strona 35 - 2.6.9 /MODIFY

1Overview of the DEC Text Processing UtilityThis chapter presents information about the DEC Text Processing Utility(DECTPU). The chapter includes the

Strona 36 - 2.6.10 /OUTPUT

DEC Text Processing Utility Program Development5.7 Debugging DECTPU ProgramsTo compile all code in the buffer, use the EXTEND ALL command or use theCO

Strona 37 - 2.6.11 /READ_ONLY

ASample DECTPU ProceduresThe following DECTPU procedures are samples of how to use DECTPU toperform certain tasks. These procedures show one way of us

Strona 38 - 2.6.12 /RECOVER

Sample DECTPU ProceduresA.1 Line-Mode EditorExample A–1 (Cont.) Line-Mode Editing!Top of buffer command["T"]:POSITION (BEGINNING_OF (CURRENT

Strona 39 - 2.6.13 /SECTION

Sample DECTPU ProceduresA.2 Translation of Control CharactersExample A–2 (Cont.) Procedure to Display Control Characterstranslate_array := CREATE_ARRA

Strona 40 - 2.6.14 /START_POSITION

Sample DECTPU ProceduresA.2 Translation of Control CharactersExample A–2 (Cont.) Procedure to Display Control Characters!! This procedure controls the

Strona 41

Sample DECTPU ProceduresA.2 Translation of Control CharactersExample A–2 (Cont.) Procedure to Display Control CharactersLOOPCtrl_char_range := SEARCH_

Strona 42 - 3.1 Array Data Type

Sample DECTPU ProceduresA.3 Restoring Terminal Width Before Exiting from DECTPUA.3 Restoring Terminal Width Before Exiting from DECTPUExample A–3 comp

Strona 43 - 3.2 Buffer Data Type

Sample DECTPU ProceduresA.4 Running DECTPU from an OpenVMS SubprocessA.4 Running DECTPU from an OpenVMS SubprocessExample A–4 shows one way of running

Strona 45 - 3.4 Keyword Data Type

BDECTPU Terminal SupportThis appendix lists the terminals that support screen-oriented editing anddescribes how differences among these terminals affe

Strona 46

Overview of the DEC Text Processing Utility1.1 Description of DECTPU• Free or bound cursor motion• Learn sequences• Pattern matching• Key definition• P

Strona 47 - 3.5 Learn Data Type

DECTPU Terminal SupportB.1 Using Screen-Oriented Editing on Supported Terminals132-Column ModeOnly terminals that set the DEC_CRT mode bit and the adv

Strona 48 - 3.6 Marker Data Type

DECTPU Terminal SupportB.1 Using Screen-Oriented Editing on Supported TerminalsB.1.2 SET TERMINAL CommandWhen you use the SET TERMINAL command to spec

Strona 49

DECTPU Terminal SupportB.3 Using Terminal WrapExample B–1 DCL Command Procedure for SET TERM/NOWRAP$ SET TERM/NOWRAP$ ASSIGN/USER SYS$COMMAND SYS$INPU

Strona 50 - 3.7 Pattern Data Type

CDECTPU Debugger CommandsYou can use the following commands for debugging once you have set breakpoints,compiled code, and started execution.ATTACH pr

Strona 51

DECTPU Debugger CommandsSET WINDOW top, lengthPlaces the top of the debugger window at the line number specified by the topparameter. Extends the windo

Strona 52

IndexA@ command, 5–27Abortresulting from exceeding virtual address space,2–8ABORT statement, 4–24, 4–29 to 4–30Active editing point, 3–4Algorithmfor n

Strona 53 - 3.7.3 Using Pattern Operators

/CREATE qualifier, 2–11CREATE_WIDGET built-in procedureusing to specify callback routine, 5–8using to specify resource values, 5–11CREATE_WINDOW built-

Strona 54

ENDIF statement, 4–20 to 4–21ENDLOOP statement, 4–20ENDMODULE statement, 4–14ENDON_ERROR statement, 4–23 to 4–28ENDPROCEDURE statement, 4–15 to 4–19En

Strona 55

Journaling (cont’d)layered application control, 2–6using both keystroke and buffer-changejournaling, 2–7"journaling" string constant paramet

Strona 56 - 3.7.5 Searching for a Pattern

Pattern (cont’d)execution, 3–16expression, 4–11linking (&), 3–13operators, 3–13searching, 3–10Pattern assignmentpartial (@), 3–14PATTERN data type

Strona 57 - 3.7.6 Anchoring a Pattern

Overview of the DEC Text Processing Utility1.2 Description of DECwindows DECTPU1.2.1 DECwindows DECTPU and DECwindows FeaturesThe DECwindows environme

Strona 58 - 3.9 Program Data Type

Showing version number, 5–2SHOW_BUFFER variable, 5–24Source files for EVE, 2–3Startup files, 2–2 to 2–3, 5–17 to 5–27command file, 2–2definition, 2–2initi

Strona 59 - 3.10 Range Data Type

WWidgetlisting of, 5–4WIDGET data type, 3–22Widget resourcesdata types of, 5–10 to 5–11specifying, 5–10Windowcreating, 3–23current, 3–24definition, 3–2

Strona 61 - 3.12 Unspecified Data Type

Overview of the DEC Text Processing Utility1.2 Description of DECwindows DECTPUThe DECwindows version of DECTPU does not provide access to all of thef

Strona 62 - 3.14 Window Data Type

Overview of the DEC Text Processing Utility1.3 Description of EVEFigure 1–2 DECTPU as a Base for User-Written InterfacesZK−6544−GED E C T

Strona 63 - 3.14.2 Creating Windows

Overview of the DEC Text Processing Utility1.4 DECTPU Language1.4.1 Data TypesThe DECTPU language has an extensive set of data types. You use data typ

Strona 64 - 3.14.4 Mapping Windows

Overview of the DEC Text Processing Utility1.4 DECTPU Language1.4.5 User-Written ProceduresYou can write your own procedures that combine DECTPU langu

Strona 65 - 3.14.5 Removing Windows

© 2001 Compaq Computer CorporationCompaq, VAX, VMS and the Compaq logo Registered in U.S. Patent and Trademark Office.OpenVMS is a trademark of Compaq

Strona 66

Overview of the DEC Text Processing Utility1.6 Learning Path for DECTPU1.6 Learning Path for DECTPUThe suggested path for learning to use DECTPU is to

Strona 67 - Utility Language

2Getting Started with DECTPUThis chapter describes the following:• Invoking DECTPU on OpenVMS systems• Invoking DECTPU from a DCL command procedure• I

Strona 68 - 4.3 Character Sets

Getting Started with DECTPU2.1 Invoking DECTPU on OpenVMS Systems2.1.1 Default File SpecificationsTable 2–1 lists the default TPU and EVE file specificat

Strona 69 - 4.3.3 General Character Sets

Getting Started with DECTPU2.1 Invoking DECTPU on OpenVMS SystemsNoteWhen you invoke DECTPU with the /NOSECTION qualifier, DECTPUdoes not use any binar

Strona 70 - 4.3.5 DECTPU Symbols

Getting Started with DECTPU2.2 Invoking DECTPU from a DCL Command ProcedureExample 2–1 shows a DCL command procedure that ‘‘remembers’’ the last fileth

Strona 71 - 4.5 Variables

Getting Started with DECTPU2.2 Invoking DECTPU from a DCL Command ProcedureExample 2–3 DCL Command Procedure INVISIBLE_TPU.COM! This command procedure

Strona 72 - 4.6 Constants

Getting Started with DECTPU2.3 Invoking DECTPU from a Batch Job2.3 Invoking DECTPU from a Batch JobIf you want your edits to be made in batch rather t

Strona 73 - 4.7 Operators

Getting Started with DECTPU2.4 Using Journal Files2.4.1 Keystroke JournalingIn keystroke journaling, DECTPU keeps track of each keystroke made duringa

Strona 74 - 4.8 Expressions

Getting Started with DECTPU2.4 Using Journal Files2.4.3 Buffer-Change Journal File-Naming AlgorithmBy default, DECTPU creates the buffer-change journa

Strona 75

Getting Started with DECTPU2.5 Avoiding Errors Related to Virtual Address SpaceDECTPU keeps strings in a different virtual pool than it does other mem

Strona 76 - 4.8.2 Relational Expressions

ContentsPreface ... ix1 Overview of the DEC Text Processing Utility1.1 Description of DECTPU

Strona 77 - 4.8.4 Boolean Expressions

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersThe choice of character set also affects how your text appears when printed. Fo

Strona 78 - 4.9 Reserved Words

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersBy default, DECTPU tries to read a command file called TPU$COMMAND.TPUin your de

Strona 79

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersBy default, EVE creates a new file if the specified input file does not exist. If

Strona 80

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersThe /NODISPLAY qualifier causes DECTPU to run without using the screendisplay an

Strona 81

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command Qualifiers2.6.7 /INTERFACEThe /INTERFACE qualifier determines the interface or screen disp

Strona 82

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command Qualifiers$ EDIT/TPU/NOJOURNAL memo.txtIf you are developing an application layered on DE

Strona 83

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersIf you invoke EVE and do not specify /MODIFY, /NOMODIFY, /READ_ONLY, or/NOWRITE

Strona 84

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersUsing /NOOUTPUT, you can develop an application that lets you control theoutput

Strona 85

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command Qualifiers2.6.12 /RECOVER/RECOVER/NORECOVER (default)The /RECOVER qualifier determines whe

Strona 86

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command Qualifiers$ EDIT/TPU/RECOVER/JOURNAL=save.TJL letter.datIn EVE, you can use /RECOVER to r

Strona 87

2.6.8 /JOURNAL. . ... 2–142.6.9 /MODIFY . . . ... 2–152.6.10 /OUTPUT

Strona 88

Getting Started with DECTPU2.6 Using OpenVMS EDIT/TPU Command QualifiersIf you specify the /NOSECTION qualifier, DECTPU does not load a section file.Unle

Strona 89

3DEC Text Processing Utility Data TypesA data type is a group of elements that ‘‘belong together’’; the elements are allformed in the same way and are

Strona 90

DEC Text Processing Utility Data Types3.1 Array Data Type3.1 Array Data TypeAn array is a structure for storing and manipulating a group of elements.

Strona 91

DEC Text Processing Utility Data Types3.1 Array Data Typeint_array := CREATE_ARRAY (10, 1);int_array {1} := "Store a string in the first element&

Strona 92

DEC Text Processing Utility Data Types3.2 Buffer Data TypeIn this statement, my_buf is the identifier for the variable my_buf. The string"my_buffe

Strona 93

DEC Text Processing Utility Data Types3.3 Integer Data TypeDECTPU also supports binary, octal, and hexadecimal integers. Binary integersare preceded b

Strona 94

DEC Text Processing Utility Data Types3.4 Keyword Data TypeTable 3–1 shows the correspondence between keywords used as DECTPUkey names and the keys on

Strona 95

DEC Text Processing Utility Data Types3.4 Keyword Data TypeTable 3–1 (Cont.) Keywords Used for Key NamesDECTPU Key NameVT400, VT300, VT200Series Key V

Strona 96

DEC Text Processing Utility Data Types3.5 Learn Data TypeTo enable your user-written DECTPU procedures to work successfully withlearn sequences, you m

Strona 97

DEC Text Processing Utility Data Types3.6 Marker Data TypeA marker is bound if there is a character in the position marked by the editingpoint at the

Strona 98

4.4 Identifiers . ... 4–54.5 Variables . . ... 4–54.6 Constan

Strona 99

DEC Text Processing Utility Data Types3.6 Marker Data Type• ERASE_LINE• MOVE_HORIZONTAL• MOVE_TEXT• MOVE_VERTICAL• SELECT• SELECT_RANGE• SPLIT_LINEExa

Strona 100 - 4.10 Lexical Keywords

DEC Text Processing Utility Data Types3.7 Pattern Data TypeTo create a pattern, use DECTPU pattern operators (+, &, |, @) to connect any ofthe fol

Strona 101 - Development

DEC Text Processing Utility Data Types3.7 Pattern Data Typefor the pattern, the built-in returns a range that contains the text that matchesthe patter

Strona 102 - 5.1.2 Complex Programs

DEC Text Processing Utility Data Types3.7 Pattern Data Type3.7.3 Using Pattern OperatorsThe following are the DECTPU pattern operators:• Concatenation

Strona 103 - 5.1.3 Program Syntax

DEC Text Processing Utility Data Types3.7 Pattern Data TypeGiven this sequence of definitions, a search for pat_var succeeds if DECTPUencounters the fo

Strona 104 - 5.2.1 Widget Support

DEC Text Processing Utility Data Types3.7 Pattern Data Typepat1 := "abc" + (arb(2) @ var1) + remain;SEARCH or SEARCH_QUIETLY also assigns to

Strona 105 - 5.2.2 Input Focus Support

DEC Text Processing Utility Data Types3.7 Pattern Data TypeGiven this definition, the following patterns match the same text but are notequal:pat1 := L

Strona 106 - "AUXILIARY"

DEC Text Processing Utility Data Types3.7 Pattern Data Type3.7.6 Anchoring a PatternAnchoring a pattern forces SEARCH or SEARCH_QUIETLY to match thean

Strona 107 - 5.2.4 Using Callbacks

DEC Text Processing Utility Data Types3.8 Process Data Type3.8 Process Data TypeThe CREATE_PROCESS built-in procedure returns a value of the process d

Strona 108

DEC Text Processing Utility Data Types3.10 Range Data Type3.10 Range Data TypeA range contains all the text between (and including) two markers. You c

Strona 109

5.2.3 Global Selection Support ... 5–65.2.3.1 Difference Between Global Selection and Clipboard . ... 5–65.2.3

Strona 110 - 5.2.5 Using Closures

DEC Text Processing Utility Data Types3.10 Range Data TypeThe following example assigns a value of the range data type to the variable x:x := CREATE_R

Strona 111

DEC Text Processing Utility Data Types3.11 String Data TypeThe maximum length for a string is 65,535 characters. A restriction of theDECTPU compiler i

Strona 112

DEC Text Processing Utility Data Types3.12 Unspecified Data TypeTo give a variable the data type unspecified, assign the predefined constantTPU$K_UNSPECI

Strona 113

DEC Text Processing Utility Data Types3.14 Window Data Type3.14.1 Defining Window DimensionsWindows are defined in lines and columns. In EVE, all window

Strona 114 - 5.4 Compiling DECTPU Programs

DEC Text Processing Utility Data Types3.14 Window Data Type3.14.3 Displaying Window ValuesWhen you use the CREATE_WINDOW built-in procedure to create

Strona 115 - 5.5 Executing DECTPU Programs

DEC Text Processing Utility Data Types3.14 Window Data TypeFor more information on the cursor position in a window and the POSITIONbuilt-in procedure,

Strona 116 - 5.5.2 Process Suspension

DEC Text Processing Utility Data Types3.14 Window Data Type3.14.8 Terminals That Do Not Support WindowsDECTPU supports windows only for ANSI character

Strona 117 - 5.6.2 Command Files

4Lexical Elements of the DEC Text ProcessingUtility Language4.1 OverviewA DECTPU program is composed of lexical elements. A lexical element may bean i

Strona 118 - 5.6.3 Initialization Files

Lexical Elements of the DEC Text Processing Utility Language4.3 Character Sets4.3 Character SetsWhen you invoke DECTPU, you can use one of the followi

Strona 119 - 5.6.5 Using Section Files

Lexical Elements of the DEC Text Processing Utility Language4.3 Character Sets4.3.2 ISO Latin1 Character Set (ISO_LATIN1)The ISO Latin1 Character Set

Strona 120

A Sample DECTPU ProceduresA.1 Line-Mode Editor ... A–1A.2 Translation of Control Characters ...

Strona 121

Lexical Elements of the DEC Text Processing Utility Language4.3 Character SetsFor example:GOLD 27 GOLD Specins4.3.5 DECTPU SymbolsCertain symbols have

Strona 122

Lexical Elements of the DEC Text Processing Utility Language4.4 Identifiers4.4 IdentifiersIn DECTPU, identifiers are used to name programs, procedures, k

Strona 123

Lexical Elements of the DEC Text Processing Utility Language4.5 VariablesThe global variable user_tab_char is assigned a value when the procedureuser_

Strona 124 - 5.6.6 Using Command Files

Lexical Elements of the DEC Text Processing Utility Language4.6 ConstantsExample 4–2 (Cont.) Global and Local Constant DeclarationsPROCEDURE user_hell

Strona 125

Lexical Elements of the DEC Text Processing Utility Language4.7 OperatorsTable 4–5 (Cont.) DECTPU OperatorsType Symbol Description+ Pattern concatenat

Strona 126

Lexical Elements of the DEC Text Processing Utility Language4.8 Expressions• You can mix data types when using the not equal (<>) and equal (=)r

Strona 127

Lexical Elements of the DEC Text Processing Utility Language4.8 ExpressionsThere are four types of DECTPU expressions:• Arithmetic• Relational• Patter

Strona 128 - 5.7 Debugging DECTPU Programs

Lexical Elements of the DEC Text Processing Utility Language4.8 ExpressionsWhen used with markers, these operators test whether one marker is closerto

Strona 129

Lexical Elements of the DEC Text Processing Utility Language4.8 ExpressionsA true value in DECTPU is any odd integer; a false value is any even intege

Strona 130 - 5.8 Handling Errors

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words• TPU$K_HELP_MODIFIED• TPU$K_MESSAGE_FACILITY• TPU$K_MESSAGE_ID• TPU$K_M

Strona 131 - Sample DECTPU Procedures

A–1 Line-Mode Editing ... A–1A–2 Procedure to Display Control Characters ... A–2A–3 Procedure

Strona 132 - A.1 Line-Mode Editor

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsENDCASE• Error statementON_ERRORENDON_ERROR• RETURN statement• ABORT sta

Strona 133

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words4.9.4.2 Procedure DeclarationThe PROCEDURE/ENDPROCEDURE declaration deli

Strona 134

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsThe scope of procedure parameters is limited to the procedure in which t

Strona 135

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsExample 4–5 Complex Procedure with Optional ParametersCONSTANTuser_warni

Strona 136

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words4.9.4.5 Procedures That Return a ResultProcedures that return a result a

Strona 137

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsExample 4–8 Recursive ProcedurePROCEDURE user_reverseLOCAL temp_string;t

Strona 138

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words4.9.4.10 Assignment StatementThe assignment statement assigns a value to

Strona 139 - DECTPU Terminal Support

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsThe ENDIF statement specifies the end of a conditional statement.SyntaxIF

Strona 140

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsSyntaxCASE case-selector [[FROMlower-constant-expr, TO upper-constant-ex

Strona 141 - B.3 Using Terminal Wrap

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words4.9.4.14 Error HandlingA block of code starting with ON_ERROR and ending

Strona 142

PrefaceThis manual discusses the DEC Text Processing Utility (DECTPU).Intended AudienceThis manual is for experienced programmers who know at least on

Strona 143 - DECTPU Debugger Commands

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words• RETURN—This language statement stops the execution of the procedure in

Strona 144

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words• If an error or warning is generated during a CALL_USER routine, ERROR

Strona 145

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsExample 4–11 Procedure with a Case-Style Error HandlerPROCEDURE eve$lear

Strona 146

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsIf the error or warning is trapped by a selector other than OTHERWISE,DE

Strona 147

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved Words• If the error is not due to you pressing Ctrl/C, the error message is w

Strona 148

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsExample 4–13 Procedure That Returns a StatusPROCEDURE user_at_end_of_lin

Strona 149

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsExample 4–15 Simple Error HandlerON_ERRORMESSAGE ("Aborting procedu

Strona 150

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsSyntaxLOCAL variable-name [[,...]];Local variables may also be declared

Strona 151

Lexical Elements of the DEC Text Processing Utility Language4.9 Reserved WordsIf this code is included in TEMP.TPU, the following command demonstrates

Strona 152

Lexical Elements of the DEC Text Processing Utility Language4.10 Lexical Keywords4.10.1 Conditional CompilationThe following lexical keywords control

Komentarze do niniejszej Instrukcji

Brak uwag