Parser limps into existence

This commit is contained in:
ridiculousfish
2013-06-08 19:20:26 -07:00
parent 99494afd08
commit f3e5262dc0
6 changed files with 350 additions and 337 deletions

View File

@@ -60,6 +60,7 @@
#include "postfork.h"
#include "signal.h"
#include "highlight.h"
#include "expression.h"
/**
The number of tests to run
@@ -1717,6 +1718,12 @@ void history_tests_t::test_history_speed(void)
delete hist;
}
static void test_new_parser(void)
{
say(L"Testing new parser!");
parse_t parser;
parser.parse(L"echo hello");
}
/**
Main test
@@ -1733,12 +1740,15 @@ int main(int argc, char **argv)
say(L"Lines beginning with '(ignore):' are not errors, they are warning messages\ngenerated by the fish parser library when given broken input, and can be\nignored. All actual errors begin with 'Error:'.");
set_main_thread();
setup_fork_guards();
proc_init();
//proc_init();
event_init();
function_init();
builtin_init();
reader_init();
env_init();
test_new_parser();
return 0;
test_format();
test_escape();