Commit 5f780a24 by Aaron Leung

Banging out a tidy top-level driver.

parent 33c5ecdf
#include <iostream>
#include <sstream>
#include "document.hpp"
using namespace Sass;
using namespace std;
int main(int argc, char* argv[]) {
if (argc < 2) {
cout << "Hey, I need a file to read!" << endl;
return 0;
}
Document doc(argv[1], 0);
doc.parse_scss();
stringstream output;
for (int i = 0; i < doc.statements.size(); ++i) {
doc.statements[i].emit_expanded_css(output, "");
}
cout << output.str();
return 0;
}
\ No newline at end of file
$blah: bloo;
$blah: bloo blee;
/* top level comment -- should preserved */
div {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment