Use a c++ compiler
This commit is contained in:
parent
a8155e885f
commit
d7acfd8c8e
11
cyoa.leg
11
cyoa.leg
@ -1,8 +1,9 @@
|
||||
%{
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <vector>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
typedef struct page_t page_t;
|
||||
typedef struct footer_t footer_t;
|
||||
@ -110,7 +111,7 @@ TextLine = < (!Newline .)* Newline > { $$.string = strndup(yytext, yyleng);
|
||||
|
||||
Footer = Ending { $$.page = emit_ending(); }
|
||||
| g:Goto { $$.page = emit_goto(g.string); }
|
||||
| c:ChoiceList { $$.page = emit_choices(c.choices); }
|
||||
| c:ChoiceList { $$.page = emit_choices(); }
|
||||
;
|
||||
|
||||
Goto = 'GOTO' Spacing < i:Identifier > Newline
|
||||
|
Loading…
Reference in New Issue
Block a user