ucg/examples/test.ucg
Jeremy Wall 45b9712380 Some Refactoring and cleanups.
* Moved the AST datastructures into their own module.
* Collapsed the Expression Enum to just wrappers around structs
  instead of having actual structs in the definitions.
* Added a few more unit tests to ensure nothing got broken.
* Added documentation for the new structs.
* Added a unifying BinaryExpression Tuple type.
2017-09-06 18:16:28 -05:00

16 lines
323 B
Plaintext

let dbhost = "localhost";
let dbname = "testdb";
let mk_db_conn = macro (host, port, db) => {
conn_string = "@:@/@" % (host, port, db)
host = host,
port = port,
db = db,
};
let db_conn = mk_db_conn(host, 3306, dbame);
let server_config = {
dbconn = db_conn.conn_string,
tmpldir = "./templates"
};