Forum archive 2000-2006

Michael Gage - DOCUMENT

Michael Gage - DOCUMENT

by Arnold Pizer -
Number of replies: 0
inactiveTopicDOCUMENT topic started 12/15/2001; 12:08:55 PM
last post 12/15/2001; 12:08:55 PM
userMichael Gage - DOCUMENT  blueArrow
12/15/2001; 12:08:55 PM (reads: 1696, responses: 0)

DOCUMENT

Description
This must be the first statement in each PG problem source file

Syntax

DOCUMENT()

Params

None

Action

Initializes the PG parser

Returns

Nothing

Examples

A barebones PG problem has this structure:

DOCUMENT();
loadMacros(PGbasicmacros.pl,
PGanswermacros.pl );

BEGIN_TEXT
Hello \{ans_rule()\}

END_TEXT
ANS(str_cmp("World") );
ENDDOCUMENT();

Macro Definition File

PG.pl

 

<| Post or View Comments |>