Support $def
Support $required
Support parse from file