import m.f; -- f must have only a single component
import module m.n; -- n must have only a single component
import type m.t; -- t must have only a single component
import m.(..); -- import everything
import m.(names); -- import certain names with a single declaration
import m.(..\names); -- import all but certain names
To do this we basically want a way to say 'gimme a name provided it is not followed by a period' which we can probably do since it needs to be followed by a semicolon instead. We can parse the other cases pretty simply.
Friday, July 2, 2010
Quick note on imports
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment