Missing CRPL commands

Started by Grauniad, October 25, 2013, 09:57:33 AM

Previous topic - Next topic

Grauniad

A goodnight to all and to all a good night - Goodnight Moon

kai

Quote from: Grauniad on February 03, 2014, 11:50:26 AM
http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getunitattribute
http://knucklecracker.com/wiki/doku.php?id=crpl:docs:setunitattribute

http://knucklecracker.com/wiki/doku.php?id=crpl:docs:getunitattribute#unit_constants

Also, wiki. It's a community thing.

I didn't see any const called "CONST_GETATTRIBUTE"...
Also, I understand the meaning of wiki, but just bruteforce the function is a kind of time wasting right? ;)
Other than that, everything is fine.

Grauniad

I'm not responsible for what eduran puts in his syntax rules. :)

I think that was a form of shorthand for getting and setting of the various attribute constants. It has no place in the syntax per se.
A goodnight to all and to all a good night - Goodnight Moon

Grayzzur

I  see on the CRPL Reference page, under Vars and Functions, there's a missing entry "Delete" - but that does not seem to be a valid CRPL command. Is that a placeholder for the "--" variable operator instead?
"Fate. It protects fools, little children, and ships named 'Enterprise.'" -William T. Riker

Grauniad

Quote from: Grayzzur on February 03, 2014, 12:12:28 PM
I  see on the CRPL Reference page, under Vars and Functions, there's a missing entry "Delete" - but that does not seem to be a valid CRPL command. Is that a placeholder for the "--" variable operator instead?

Yes. Here is the full list.

CRPL syntax mapping to internal  keywords.
:     FUNC
@   CALL
->!  REFWRITE
<-!  REFREAD
-?!  REFEXISTS
->  WRITE
<-  READ
-?  EXISTS
--  DELETE
(   OPENTRAN
)   CLOSETRAN
A goodnight to all and to all a good night - Goodnight Moon

Grayzzur

Everything in the missing list as of today is now on the CRPL Reference page. I also replaced a few existing pages that didn't have the right namespace, causing them to seem to be missing (i.e. "crpl:GetCreeperColors" instead of "crpl:docs:GetCreeperColors").

With the exception of the warp operators. Do we want to add those, or is that concept sufficiently explained in the Overview?
"Fate. It protects fools, little children, and ships named 'Enterprise.'" -William T. Riker

knucracker

I think the warp operators can be left out.  It's syntax only and gets stripped out during compilations.  It's true there are OPENTRAN and CLOSETRAN internal keywords, but they get removed at the final step of compilation and result in the reordering the resulting opcodes that execute.