Type Safe Constant Proposals

From PCGen Wiki
Jump to: navigation, search

CHOOSE proposals for Type Safe Constants

CHOOSE:NOCHOICE

No syntax changes

CHOOSE:STRING

No syntax changes

CHOOSE:SCHOOLS

SUBTOKEN: SCHOOLS (altered by this proposal, no argument version is deprecated)

Syntax

CHOOSE:SCHOOLS|x|x

x is a PRIMITIVE

A PRIMITIVE is an identifier of objects, and may include any number of specifications.

In the case of SCHOOLS objects, the only valid PRIMITIVES are the four global PRIMITIVES:

x = a School (Abjuration, Evocation, etc.)
x = ALL (allow the choice of any SCHOOL)

Conversion

CHOOSE:SCHOOLS becomes CHOOSE:SCHOOLS|ALL