Skip to content
Snippets Groups Projects
Commit 5dd3ce6a authored by Loïc Correnson's avatar Loïc Correnson Committed by Virgile Prevosto
Browse files

[logic] restrict module identifiers to exclude keywords

parent b7871fa4
No related branches found
No related tags found
No related merge requests found
......@@ -1684,11 +1684,11 @@ logic_def:
{ pop_module_types () ; LDmodule($2,$4) }
| IMPORT mId = module_name SEMICOLON
{ LDimport(None,mId,None) }
| IMPORT mId = module_name AS id = identifier SEMICOLON
| IMPORT mId = module_name AS id = IDENTIFIER SEMICOLON
{ LDimport(None,mId,Some id) }
| IMPORT drv = identifier COLON mId = module_name SEMICOLON
| IMPORT drv = IDENTIFIER COLON mId = module_name SEMICOLON
{ LDimport(Some drv,mId,None) }
| IMPORT drv = identifier COLON mId = module_name AS id = identifier SEMICOLON
| IMPORT drv = IDENTIFIER COLON mId = module_name AS id = IDENTIFIER SEMICOLON
{ LDimport(Some drv,mId,Some id) }
| TYPE poly_id_type_add_typename EQUAL typedef SEMICOLON
{ let (id,tvars) = $2 in
......@@ -1698,7 +1698,7 @@ logic_def:
;
module_name:
| identifier { $1 }
| IDENTIFIER { $1 }
| LONGIDENT { $1 }
;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment