class with methods for processing one line of inform source code.
Used classes:
private _obj_room_detected_false (sets before_detected, go_detected and gobj_detected to 'false'.
self in undefined )
Parameters:
public _re_any_room_dir (It is called inside the inform_process loop to detect inform directions.
self in object ,
line in integer ,
new_obj in object )
return boolean
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:
public inform_process (Interpret one line of inform souce code using the global syntax object regular expressions defined in the re_inform* properties. Step by step processing:
self in object ,
Zobj in object ,
line in string ,
line_number in undefined ,
source_id in string )
- 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: