diff options
author | Camil Staps | 2017-07-30 00:51:48 +0200 |
---|---|---|
committer | Camil Staps | 2017-07-30 00:54:02 +0200 |
commit | 05a47988d9466b827f7dbab44bab33a67228efe9 (patch) | |
tree | c9f2ce96dec969f1d756e25357dbbe2c79dfbad2 /Sil/Syntax.dcl | |
parent | Cleanup; add <> < > <= >= (diff) |
Start with positional errors (see #5)
Diffstat (limited to 'Sil/Syntax.dcl')
-rw-r--r-- | Sil/Syntax.dcl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Sil/Syntax.dcl b/Sil/Syntax.dcl index 7c983eb..1273267 100644 --- a/Sil/Syntax.dcl +++ b/Sil/Syntax.dcl @@ -5,10 +5,11 @@ from StdOverloaded import class toString from Data.Maybe import :: Maybe from Sil.Types import :: Type +from Sil.Util.Parser import :: Positioned :: Program = - { p_funs :: [Function] - , p_globals :: [Initialisation] + { p_funs :: [Positioned Function] + , p_globals :: [Positioned Initialisation] } :: Function = @@ -19,8 +20,8 @@ from Sil.Types import :: Type } :: CodeBlock = - { cb_init :: [Initialisation] - , cb_content :: [Statement] + { cb_init :: [Positioned Initialisation] + , cb_content :: [Positioned Statement] } :: Arg = |