Next: , Previous: , Up: Imperative Language Interpreter Definitions   [Index]


5.9.1.3 Program Completions

Program completion modes describe textual program completion syntax.

See Imperative Language Syntax.

Specifying the textual program completion syntax is achieved by setting the completion field in the struct x1f4_c1_type record argument of the program parsing function and setting the X1f4_C1_SLIPTEST bit in the flags argument of the program parsing function.

See struct x1f4_c1_type.

See Imperative Language Interpreter Generation Flags.

If the X1f4_C1_SLIPTEST bit in the flags argument of the program parsing function is not set the completion field in the struct x1f4_c1_type record argument of the program parsing function is ignored and the default X1f4_C1_BYTE_COMPLETION is assumed.

X1f4_C1_BACK_COMPLETION

indicates that the program completes with the first unmatched closing brace (‘}’).

X1f4_C1_BYTE_COMPLETION

indicates that the program completes with the first occurence of a zero byte.

X1f4_C1_TURN_COMPLETION

indicates that the program completes with the first occurence of a ‘return’ introduced expression. The expression type must match the type specified by the detail field in the struct x1f4_c1_type record argument of the program parsing function.