DB include w/ macros
Created by: mdavidsaver
An idea I'm trying out. Partly an excuse for cleanup in the DBD parser code. Enables a .db files include w/o additional macro (re)definitions. A sort of hierarchical alternative to MSI.
include "other.db" "MAC=one"
include "other.db" "MAC=two"
Closes a corner case bug in the parser which requires that an include be at the end of a line (through re-use of line buffer and parser state). eg.
include "other.db" record(ai, "x") {
Currently fails to parse with the rather contradictory error
Error: syntax error
at or before "record" in path "." file "other.db" line 1
Where the "record" in question is actually the remainder of the line in the enclosing .db file.