Comments (5)
I'm yet unclear on what is exactly a special register, and especially when it can be used.
On one hand, there is a whole list of special registers including ADDRESS OF, LENGTH OF on p16, with only the usage of some of them being noted ; on the other hand, words like DEBUG-ITEM are called special registers too, but are not in the list.
So :
- are special registers allowed anywhere identifiers are allowed ? Or does it depend on the statement considered ?
- what is an exhaustive list of special registers ?
Thanks for your comments.
from typecobol.
Is LENGTH OF
a function identifier or a special register ?
Are function identifiers allowed everywhere identifiers are allowed ? I've seen it only in a MOVE
statement yet.
from typecobol.
special registers are:
`ADDRESS OF
DEBUG-ITEM which is defined as:
01 DEBUG-ITEM.
02 DEBUG-LINE PICTURE IS X(6).
02 FILLER PICTURE IS X VALUE SPACE.
02 DEBUG-NAME PICTURE IS X(30).
02 FILLER PICTURE IS X VALUE SPACE.
02 DEBUG-SUB-1 PICTURE IS S9999 SIGN IS LEADING SEPARATE CHARACTER.
02 FILLER PICTURE IS X VALUE SPACE.
02 DEBUG-SUB-2 PICTURE IS S9999 SIGN IS LEADING SEPARATE CHARACTER.
02 FILLER PICTURE IS X VALUE SPACE.
02 DEBUG-SUB-3 PICTURE IS S9999 SIGN IS LEADING SEPARATE CHARACTER.
02 FILLER PICTURE IS X VALUE SPACE.
02 DEBUG-CONTENTS PICTURE IS X(n).
JNIENVPTR
LENGTH OF
LINAGE-COUNTER
RETURN-CODE
SHIFT-OUT
SHIFT-IN
SORT-CONTROL
SORT-CORE-SIZE
SORT-FILE-SIZE
SORT-MESSAGE
SORT-MODE-SIZE
SORT-RETURN
TALLY
WHEN-COMPILED
XML-CODE
XML-EVENT
XML-TEXT
XML-NTEXT
XML-NAMESPACE
XML-NNAMESPACE
XML-NAMESPACE-PREFIX
XML-NNAMESPACE-PREFIX
XML-INFORMATION
CURRENT-DATE
TIME-OF-DAY
from typecobol.
GRAMMAR CHANGE:
LENGTH OF
special register can be written without OF
in production code.
So, we have to differentiate between, for example :
MOVE FUNCTION LENGTH (x) TO y
<-- this is an intrinsic function call
MOVE LENGTH OF x TO y
<-- this is a special register usage
MOVE LENGTH x TO y
<-- this is a special register usage, too
from typecobol.
Identifier are widely implemented ; the only remaining issue is #50.
Let's close this ticket to minimize duplicates.
from typecobol.
Related Issues (20)
- NullReferenceException when getting DataDefinition.StartPosition property
- Incorrect URI management in notifications PublishDiagnostics and MissingCopies
- Check URI management in Language Server
- Value cannot be null. (Parameter 'source')
- InvalidOperationException in lazy field RedefinedVariable of DataRedefines
- Missing diagnostic on invalid picture/usage combination
- PictureType length may be wrong when picture category is NationalEdited
- Missing compatibility check between Picture and Usage
- NullReference in RedefinesChecker.OnNode(DataRedefines redefinesNode) HOT 1
- Optimize the StartPosition property
- CFG in Extended mode maybe wrong
- VALUE clause cannot be specified in conjunction with REDEFINES and for an item having a parent with a VALUE clause
- Upgrade to .NET 8
- Ensure build order
- Do not use Assembly.LoadFrom ?
- Incorrect encoding for alphanumeric literals using hexadecimal notation HOT 3
- Support for LSP refactoring requests HOT 2
- Invalid cast in TableDefinitionExtensions.GetTableSortingKeys HOT 1
- Implement new command AdjustFillers
- Invalide precedence of operators when building abbreviated relation conditions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typecobol.