Boost Spirit Segfault In Parser
I have been trying to convert some lex and yacc code I wrote in an undergraduate compiler, course to spirit code to learn spirit and I have found a segfault that I can't seem to figure out. I wrote the lexer like this: namespace lex = boost::spirit::lex; enum Tokens { k_andTok = 1, k_def = 2, k_elihw = 3, k_elseTok = 4, k_falseTok = 5, k_fed = 6, k_fi = 7, k_ifTok = 8, k_input = 9, k_notTok = 10, k_orTok = 11, k_print = 12, k_returnTok = 13, k_trueTok = 14, k_whileTok = 15, k_plues = 16, k_minus = 17, k_mult = 18, k_div = 19, k_bang = 20, k_equalTo = 21, k_greaterEq = 22, k_lessEq = 23, k