4 #include <frith/lexer.hpp>
5 #include <ail/file.hpp>
6 #include <frith/interpreter.hpp>
8 int main(int argc
, char ** argv
)
12 std::cout
<< argv
[0] << " <input> <output>" << std::endl
;
17 if(!ail::read_file(argv
[1], code
))
19 std::cout
<< "Unable to read input" << std::endl
;
23 std::vector
<frith::line_of_code
> lines
;
25 frith::lexer
lexer(code
, lines
, error
);
26 if(!lexer
.parse(lines
))
28 std::cout
<< "Error: " << error
<< std::endl
;
33 ail::write_file(argv
[2], frith::visualise_lexemes(lines
));