include added
This commit is contained in:
@ -107,6 +107,7 @@
|
|||||||
|
|
||||||
program:
|
program:
|
||||||
prototype_or_definition_list
|
prototype_or_definition_list
|
||||||
|
| include_list
|
||||||
| include_list prototype_or_definition_list
|
| include_list prototype_or_definition_list
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -130,14 +131,14 @@ prototype:
|
|||||||
|
|
||||||
|
|
||||||
include_list:
|
include_list:
|
||||||
include_statement SEMI_COLON include_list
|
include_statement include_list
|
||||||
| include_statement
|
| include_statement
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include_statement:
|
include_statement:
|
||||||
INCLUDE C_STRING SEMI_COLON
|
INCLUDE C_STRING
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
(* TEST: [-tok -asc -tc] *)
|
(* TEST: [-tok -asc -tc] *)
|
||||||
#include "alpha.h";
|
#include "alpha.h"
|
||||||
#include "alpha.h";
|
#include "alpha.h"
|
||||||
#include "alpha.h";
|
#include "alpha.h"
|
@ -1,4 +1,7 @@
|
|||||||
(* TEST: [-asc -tc -cg -ir] *)
|
(* TEST: [-asc -tc -cg -ir] *)
|
||||||
|
#include "alpha.h"
|
||||||
|
#include "alpha.h2"
|
||||||
|
#include "alpha.h3"
|
||||||
type main: integer -> integer
|
type main: integer -> integer
|
||||||
function test: main
|
function test: main
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user