];
include_command: [ [
- IDENT "include" ; path = QSTRING -> loc,path
+ IDENT "include" ; path = QSTRING ->
+ loc,path,LexiconAst.WithPreferences
+ | IDENT "include'" ; path = QSTRING ->
+ loc,path,LexiconAst.WithoutPreferences
]];
grafite_command: [ [
fun ~include_paths status -> status,LSome(GrafiteAst.Executable (loc,ex))
| com = comment ->
fun ~include_paths status -> status,LSome (GrafiteAst.Comment (loc, com))
- | (iloc,fname) = include_command ; SYMBOL "." ->
+ | (iloc,fname,mode) = include_command ; SYMBOL "." ->
fun ~include_paths status ->
let path = DependenciesParser.baseuri_of_script ~include_paths fname in
let status =
- LexiconEngine.eval_command status (LexiconAst.Include (iloc,path))
+ LexiconEngine.eval_command status (LexiconAst.Include (iloc,path,mode))
in
status,
LSome