Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

KeyboardPrimitive (lines 575-608)

0575  !  The InformParser object abstracts the front end of the parser.
0576  !
0577  !  InformParser.parse_input(results)
0578  !  returns only when a sensible request has been made, and puts into the
0579  !  "results" buffer:
0580  !
0581  !  --> 0 = The action number
0582  !  --> 1 = Number of parameters
0583  !  --> 2, 3, ... = The parameters (object numbers), but
0584  !                  0 means "put the multiple object list here"
0585  !                  1 means "put one of the special numbers here"
0586  !
0587  ! ----------------------------------------------------------------------------
0588   
0589  Object InformParser "(Inform Parser)"
0590    with parse_input
0591         [ results; Parser__parse(results);
0592         ], has proper;
0593   
0594  ! ----------------------------------------------------------------------------
0595  !  The Keyboard routine actually receives the player's words,
0596  !  putting the words in "a_buffer" and their dictionary addresses in
0597  !  "a_table".  It is assumed that the table is the same one on each
0598  !  (standard) call.
0599  !
0600  !  It can also be used by miscellaneous routines in the game to ask
0601  !  yes-no questions and the like, without invoking the rest of the parser.
0602  !
0603  !  Return the number of words typed
0604  ! ----------------------------------------------------------------------------
0605   
0606  [ KeyboardPrimitive  a_buffer a_table;
0607    read a_buffer a_table;
0608  ];


Last updated 27 February 2004. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.