GithubHelp home page GithubHelp logo

Identifiers about typecobol HOT 5 CLOSED

typecobolteam avatar typecobolteam commented on August 22, 2024
Identifiers

from typecobol.

Comments (5)

wiztigers avatar wiztigers commented on August 22, 2024

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.

wiztigers avatar wiztigers commented on August 22, 2024

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.

osmedile avatar osmedile commented on August 22, 2024

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.

wiztigers avatar wiztigers commented on August 22, 2024

SPEC GAP!
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.

wiztigers avatar wiztigers commented on August 22, 2024

Identifier are widely implemented ; the only remaining issue is #50.
Let's close this ticket to minimize duplicates.

from typecobol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.