-
Notifications
You must be signed in to change notification settings - Fork 20
allow multiple .dyna files on command line #40
Comments
With the same interpretation as concatenating them together? |
Yeah, concatenated in the order given. Seems a pretty standard Unix (There are times when one might want to load multiple dynabases under |
Working on making the compiler understand. Amusingly enough, the parser framework does not seem to have this right; investigating. |
I don't understand why we want this. (Python doesn't take multiple files. gcc/javac do, but they do something different with it.) In your example of loading multiple dynabases, you should either type those in at the repl our write a file which imports them and give them names. |
We don't have multiple dynabases yet (that comment was looking ahead). All we have is concatenation of stuff specified in different .dyna files. So in fact, this is a lot like providing multiple files to javac, with different parts of the program defined in different files but intended to work together. At the moment, I want to run forward-backward (encapsulated in
Each file is short enough to be comprehensible by itself, and I can easily invoke the command line with different choices for the first two files -- trying different initial parameters, or switching from weather reconstruction to POS tagging. Right now, I have to cat the files together and make up a name for the result and then run dyna on that, which is a pain. Note: The load command doesn't yet make it possible to suck in new rules from a .dyna file (even though I think you can use a load command at any time to suck in new facts from any non-.dyna file). How about an "include" command for this, by analogy with C's #include? I am suggesting that .dyna files on the command line are included. |
Especially since error messages give line numbers in the concatenated file. They should refer to one of the original source files (which of course is impossible in the current design). |
The text was updated successfully, but these errors were encountered: