"inform_process_class" class

Description

Owner: Znlpi_infObj

class with methods for processing one line of inform source code.

Used classes:

Operations: Attributes:

"_obj_room_detected_false" operation

Description

private _obj_room_detected_false (
self in undefined )
sets before_detected, go_detected and gobj_detected to 'false'.

Parameters:

"_re_any_room_dir" operation

Description

public _re_any_room_dir (
self in object ,
line in integer ,
new_obj in object )
return boolean
It is called inside the inform_process loop to detect inform directions.

If it's the first direction of the object (e.g. 'n_to'), then the object is recognized as a room and the routine returns true.

Parameters:

"inform_process" operation

Description

public inform_process (
self in object ,
Zobj in object ,
line in string ,
line_number in undefined ,
source_id in string )
Interpret one line of inform souce code using the global syntax object regular expressions defined in the re_inform* properties. Step by step processing:

- look for include statements

tries to find files according to inform include path rules

- look for 'Include "VerbLib";

- look for 'initialise [;'

- look for inform class definitions

- look for object declarations.

Inside the object:

- look for 'with'-statements

- look for name lists

- look for textual short_name

- looking for room is externalized into _re_any_room_dir(...)

Parameters: