Struct Parsing continued, ditched multiple-errors support

This commit is contained in:
vegowotenks 2025-01-01 23:04:00 +01:00
parent 0adef12173
commit 9f2fad1507
10 changed files with 70 additions and 48 deletions

View file

@ -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"