[build] graph rules reader: prepare function for text processor