Struct Parsing continued, ditched multiple-errors support
This commit is contained in:
parent
0adef12173
commit
9f2fad1507
10 changed files with 70 additions and 48 deletions
|
@ -1,5 +1,6 @@
|
|||
module Data.String.Ubc.Parse.Scope
|
||||
( Scope(..)
|
||||
, expectScopeStruct
|
||||
)
|
||||
where
|
||||
|
||||
|
@ -9,3 +10,6 @@ import Data.String.Ubc.Parse.StructScope (StructScope)
|
|||
data Scope =
|
||||
ScopeFile FileScope
|
||||
| ScopeStruct StructScope
|
||||
|
||||
expectScopeStruct (ScopeStruct s) = s
|
||||
expectScopeStruct _ = error "Internal Error: Top Scope is not Scope Struct"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue