Skip to content

Commit e3d3982

Browse files
committed
correctly parse currently defined exceptions
1 parent e191c3c commit e3d3982

File tree

2 files changed

+127
-3
lines changed

2 files changed

+127
-3
lines changed

CORE.setting

Lines changed: 124 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ my class Bag { }
6464
my class Mapping { }
6565
my class Sink { }
6666
my class Undef { }
67-
my class Failure { }
68-
my class EMPTY is Failure { }
69-
my class Exception { }
7067
my class Code { }
7168
my class Block { }
7269
my class Routine { }
@@ -168,6 +165,130 @@ my class Bit { }
168165
my class bit { }
169166
my class bool { }
170167

168+
my class Exception { }
169+
my class Failure { ... }
170+
my role X::Comp { ... }
171+
my class X::ControlFlow { ... }
172+
my class X::AdHoc is Exception { ... }
173+
my class X::Method::NotFound is Exception { ... }
174+
my class X::Method::InvalidQualifier is Exception { ... }
175+
my class X::Comp::AdHoc { ... }
176+
my role X::OS { ... }
177+
my role X::IO does X::OS { }
178+
my class X::IO::Rename does X::IO is Exception { ... }
179+
my class X::IO::Copy does X::IO is Exception { ... }
180+
my class X::IO::Mkdir does X::IO is Exception { ... }
181+
my class X::IO::Chdir does X::IO is Exception { ... }
182+
my class X::IO::Dir does X::IO is Exception { ... }
183+
my class X::IO::Cwd does X::IO is Exception { ... }
184+
my class X::IO::Rmdir does X::IO is Exception { ... }
185+
my class X::IO::Unlink does X::IO is Exception { ... }
186+
my class X::IO::Chmod does X::IO is Exception { ... }
187+
my role X::Comp is Exception { ... }
188+
my class X::Comp::AdHoc is X::AdHoc does X::Comp { ... }
189+
my role X::Syntax does X::Comp { }
190+
my role X::Pod { }
191+
my class X::NYI is Exception { ... }
192+
my class X::Comp::NYI is X::NYI does X::Comp { }
193+
my class X::OutOfRange is Exception { ... }
194+
my class X::Buf::AsStr is Exception { ... }
195+
my class X::Buf::Pack is Exception { ... }
196+
my class X::Buf::Pack::NonASCII is Exception { ... }
197+
my class X::Signature::Placeholder does X::Comp { ... }
198+
my class X::Placeholder::Block does X::Comp { ... }
199+
my class X::Placeholder::Mainline is X::Placeholder::Block { ... }
200+
my class X::Undeclared does X::Comp { ... }
201+
my class X::Attribute::Undeclared is X::Undeclared { ... }
202+
my class X::Redeclaration does X::Comp { ... }
203+
my class X::Import::Redeclaration does X::Comp { ... }
204+
my class X::Phaser::Multiple does X::Comp { ... }
205+
my class X::Obsolete does X::Comp { ... }
206+
my class X::Parameter::Default does X::Comp { ... }
207+
my class X::Parameter::Placeholder does X::Comp { ... }
208+
my class X::Parameter::Twigil does X::Comp { ... }
209+
my class X::Parameter::MultipleTypeConstraints does X::Comp { ... }
210+
my class X::Parameter::WrongOrder does X::Comp { ... }
211+
my class X::Signature::NameClash does X::Comp { ... }
212+
my class X::Method::Private::Permission does X::Comp { ... }
213+
my class X::Method::Private::Unqualified does X::Comp { ... }
214+
my class X::Bind is Exception { ... }
215+
my class X::Bind::NativeType does X::Comp { ... }
216+
my class X::Bind::Slice is Exception { ... }
217+
my class X::Bind::ZenSlice is X::Bind::Slice { ... }
218+
my class X::Value::Dynamic does X::Comp { ... }
219+
my class X::Syntax::Name::Null does X::Syntax { ... }
220+
my class X::Syntax::UnlessElse does X::Syntax { ... }
221+
my class X::Syntax::Reserved does X::Syntax { ... }
222+
my class X::Syntax::P5 does X::Syntax { ... }
223+
my class X::Syntax::NegatedPair does X::Syntax { ... }
224+
my class X::Syntax::Variable::Numeric does X::Syntax { ... }
225+
my class X::Syntax::Variable::Match does X::Syntax { ... }
226+
my class X::Syntax::Variable::Twigil does X::Syntax { ... }
227+
my class X::Syntax::Variable::IndirectDeclaration does X::Syntax { ... }
228+
my class X::Syntax::Augment::WithoutMonkeyTyping does X::Syntax { ... }
229+
my class X::Syntax::Augment::Role does X::Syntax { ... }
230+
my class X::Syntax::Argument::MOPMacro does X::Syntax { ... }
231+
my class X::Does::TypeObject is Exception { ... }
232+
my class X::Role::Initialization is Exception { ... }
233+
my class X::Syntax::Comment::Embedded does X::Syntax { ... }
234+
my class X::Syntax::Pod::BeginWithoutIdentifier does X::Syntax does X::Pod { ... }
235+
my class X::Syntax::Pod::BeginWithoutEnd does X::Syntax does X::Pod { ... }
236+
my class X::Syntax::Confused does X::Syntax { ... }
237+
my class X::Syntax::Malformed does X::Syntax { ... }
238+
my class X::Syntax::Missing does X::Syntax { ... }
239+
my class X::Syntax::SigilWithoutName does X::Syntax { ... }
240+
my class X::Syntax::Self::WithoutObject does X::Syntax { ... }
241+
my class X::Syntax::VirtualCall does X::Syntax { ... }
242+
my class X::Syntax::NoSelf does X::Syntax { ... }
243+
my class X::Syntax::Number::RadixOutOfRange does X::Syntax { ... }
244+
my class X::Syntax::Regex::Adverb does X::Syntax { ... }
245+
my class X::Syntax::Signature::InvocantMarker does X::Syntax { ... }
246+
my class X::Syntax::Extension::Category does X::Syntax { ... }
247+
my class X::Syntax::InfixInTermPosition does X::Syntax { ... }
248+
my class X::Attribute::Package does X::Comp { ... }
249+
my class X::Attribute::NoPackage does X::Comp { ... }
250+
my class X::Declaration::Scope does X::Comp { ... }
251+
my class X::Declaration::Scope::Multi is X::Declaration::Scope { ... }
252+
my class X::Anon::Multi does X::Comp { ... }
253+
my class X::Anon::Augment does X::Comp { ... }
254+
my class X::Augment::NoSuchType does X::Comp { ... }
255+
my class X::Routine::Unwrap is Exception { ... }
256+
my class X::Constructor::Positional is Exception { ... }
257+
my class X::Hash::Store::OddNumber is Exception { ... }
258+
my class X::Package::Stubbed does X::Comp { ... }
259+
my class X::Phaser::PrePost is Exception { ... }
260+
my class X::Str::Numeric is Exception { ... }
261+
my class X::Str::Match::x is Exception { ... }
262+
my class X::Str::Trans::IllegalKey is Exception { ... }
263+
my class X::Str::Trans::InvalidArg is Exception { ... }
264+
my class X::Sequence::Deduction is Exception { ... }
265+
my class X::ControlFlow is Exception { ... }
266+
my class X::ControlFlow::Return is X::ControlFlow { ... }
267+
my class X::Composition::NotComposable does X::Comp { ... }
268+
my class X::TypeCheck is Exception { ... }
269+
my class X::TypeCheck::Binding is X::TypeCheck { ... }
270+
my class X::TypeCheck::Return is X::TypeCheck { ... }
271+
my class X::TypeCheck::Assignment is X::TypeCheck { ... }
272+
my class X::TypeCheck::Splice is X::TypeCheck does X::Comp { ... }
273+
my class X::Assignment::RO is Exception { ... }
274+
my class X::NoDispatcher is Exception { ... }
275+
my class X::Localizer::NoContainer is Exception { ... }
276+
my class X::Mixin::NotComposable is Exception { ... }
277+
my class X::Inheritance::Unsupported does X::Comp { ... }
278+
my class X::Export::NameClash does X::Comp { ... }
279+
my class X::HyperOp::NonDWIM is Exception { ... }
280+
my class X::Set::Coerce is Exception { ... }
281+
my role X::Temporal is Exception { }
282+
my class X::Temporal::InvalidFormat does X::Temporal { ... }
283+
my class X::Temporal::Truncation does X::Temporal { ... }
284+
my class X::DateTime::TimezoneClash does X::Temporal { ... }
285+
my class X::Eval::NoSuchLang is Exception { ... }
286+
my class X::Import::MissingSymbols is Exception { ... }
287+
my class X::Numeric::Real is Exception { ... }
288+
my class X::PseudoPackage::InDeclaration does X::Comp { ... }
289+
290+
my class Backtrace { ... }
291+
171292
my role Ordered { }
172293
my role Callable { }
173294
my role Positional { }

viv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,9 @@ TEMPLATE
11141114
}
11151115

11161116

1117+
{ package VAST::Junctive_and; our @ISA = ('VAST::Base', 'VAST::InfixCall');
1118+
}
1119+
11171120
{ package VAST::Junctive_or; our @ISA = ('VAST::Base', 'VAST::InfixCall');
11181121
}
11191122

0 commit comments

Comments
 (0)