Page tree
Skip to end of metadata
Go to start of metadata

The Patterns Opcodes

The pattern support operations are used to facilitate the transformations of the opcodes produced by to compiler into opcodes that produce the correct translations when they are authored. They are as follows:

Opcode Description
NEW Start new command
ARG Specify argument type
BIF Reference to built in function
EOP End of property section
EOS End of control property sequence
COM Combine arguments
APS Author pattern string
LEV Specify calling level
TYV Load type of variable
PAT Load pattern from library
SCT Set extended control type
PAR Pass an argument unspecified
TMP Establish a temporary value
REF Anchor a reference to a symbol
INV Define initial value for a basic type
DPS Load Declared pattern string
CMT Comment out preceding statement


The CMT opcode

The CMT opcode has 19 DoubleByte operations as follows. It has no special role. Generally, its operations insert comments into the target code. They are as follows:

Operation Description
CommentOut A generic operation that comments out a statement
Delete A generic operation that deletes a statement
Deprecated Authors a Deprecated message before a statement
NotImplemented Authors a Not Implemented comment before a commented out statement
MustCorrect Authors a Must Correct comment before a commented out statement
WarnMessage Authors a component specific Deprecated message before a statement
IssueMessage Authors a component specific Not Implemented message before a commented out statement
IssueComment Authors a component specific Commentet Out message before a commented out statement
IfStatement Comments out a If statement referencing a component to be commented out
ElseIfTrue Comments out an else if statement referencing a component to be commented out
ElseAnything Comments out an else statement referencing a component to be commented out
EndIf Comments out an end if whose corresponding if referenced a component to be commented out
OnErrorResume Comments out On Error Resume statements that were not analysed out
OnErrorGoto Comments out On Error Goto statements that were not analysed out
OnErrorTurnOff Comments out On Error Goto 0 statements that were not analysed out
Resume0 Comments out Resume statements that were not analysed out
ResumeNext Comments out Resume Next statements that were not analysed out
ResumeLabel Comments out Resume label statements that were not analysed out
WriteLine Writes various types of extraneous statements within authored ASP pages


CMT.CommentOut

The CMT.CommentOut operation is emitted by the method Opcode_CommentOut() when its cmType parameter is set to CMT.CommentOut or when its cmType parameter is not set to CMT.Delete and the Select CodeCommentOut attribute is on. Its surface form argument is the representation of the statement being commented out


<subcode id="CommentOut">
   <vbn narg="1" code="' %1d\n"/>
   <csh narg="1" code="// %1d\n"/>
</subcode>
and its effect is to add the appropriate comment character at the front of the statement.

CMT.Delete

The CMT.Delete operation is emitted by the method Opcode_CommentOut() when its cmType parameter is set to CMT.Delete. Its surface form arguments are the entire current content of the string queue


<subcode id="Delete">
   <all narg="9"/>
</subcode>
and its effect is to simply empty the string queue.

CMT.NotImplemented

The CMT.NotImplemented operation is emitted by the method Opcode_CommentOut() when its cmType parameter is set to CMT.NotImplemented and the Select CodeCommentOut attribute is off. Its surface form argument is the representation of the statement being commented out


   <subcode id="NotImplemented">
and its effect enclose is to add the appropriate comment character at the front of the statement.
Table of Contents

  • No labels