Syntax extension: support loading from file