6.1.0080 ( paren CORE

Compilation:

Perform the execution semantics given below.

Execution:

( "ccc<paren>" -- )

Parse ccc delimited by ) (right parenthesis). ( is an immediate word.

The number of characters in ccc may be zero to the number of characters in the parse area.

See:

Rationale:

Typical use: ... ( ccc) ...

Testing:

\ There is no space either side of the ).
T{ ( A comment)1234 -> }T
T{ : pc1 ( A comment)1234 ; pc1 -> 1234 }T

ContributeContributions

ruvavatar of ruv "(" typo in a testcaseComment2020-02-25 23:15:38

The following line:

T{ ( A comment)1234 -> }T

has a typo, the missed stack effect 1234. It should be:

T{ ( A comment)1234 -> 1234 }T

LSchmidtavatar of LSchmidt

Seems that nobody cares - it's also still wrong in https://forth-standard.org/standard/testsuite#F.6.1.0080 and a bit of a nuisance when bitten by tests failing when basing those on the provided test cases.
I was first contemplating the possible reasons for making ( state smart in this bizarre way ...

AntonErtlavatar of AntonErtl

forth-standard.org currently shows Forth-2012, not the state of the working document, so any bug fixes will not be seen here for a long time. However, if you are interested in tests, Gerry Jackson maintains a test suite that includes the standard tests. Or if you are interested in officially approved tests, you start with the Hayes test suite, and add the tests from the approved CfVs on forth200x.org. I would use Gerry Jackson's more comprehensive test suite, though; in cases where you think there's a bug there, you can check how the test case works on other systems, check the text of the standard, and then discuss it with Gerry Jackson and/or here.

Reply New Version