Skip to content

Commit

Permalink
Merge pull request #281 from ichiban/typical-exceptions
Browse files Browse the repository at this point in the history
expose instantiation_error, type_error, and domain_error constructors.
  • Loading branch information
ichiban authored Jan 21, 2023
2 parents 88e435d + 18d1302 commit 56638b9
Show file tree
Hide file tree
Showing 14 changed files with 405 additions and 507 deletions.
9 changes: 9 additions & 0 deletions engine/atom.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ var (
atomDebug = NewAtom("debug")
atomDiscontiguous = NewAtom("discontiguous")
atomDiv = NewAtom("div")
atomDomainError = NewAtom("domain_error")
atomDoubleQuotes = NewAtom("double_quotes")
atomDynamic = NewAtom("dynamic")
atomE = NewAtom("E")
Expand All @@ -93,6 +94,8 @@ var (
atomEnsureLoaded = NewAtom("ensure_loaded")
atomError = NewAtom("error")
atomEvaluable = NewAtom("evaluable")
atomEvaluationError = NewAtom("evaluation_error")
atomExistenceError = NewAtom("existence_error")
atomExp = NewAtom("exp")
atomFX = NewAtom("fx")
atomFY = NewAtom("fy")
Expand All @@ -116,6 +119,7 @@ var (
atomInclude = NewAtom("include")
atomInitialization = NewAtom("initialization")
atomInput = NewAtom("input")
atomInstantiationError = NewAtom("instantiation_error")
atomIntOverflow = NewAtom("int_overflow")
atomInteger = NewAtom("integer")
atomIntegerRoundingFunction = NewAtom("integer_rounding_function")
Expand Down Expand Up @@ -147,6 +151,7 @@ var (
atomPair = NewAtom("pair")
atomPast = NewAtom("past")
atomPastEndOfStream = NewAtom("past_enf_of_stream")
atomPermissionError = NewAtom("permission_error")
atomPhrase = NewAtom("phrase")
atomPi = NewAtom("pi")
atomPosition = NewAtom("position")
Expand All @@ -159,7 +164,9 @@ var (
atomReadOption = NewAtom("read_option")
atomRem = NewAtom("rem")
atomReposition = NewAtom("reposition")
atomRepresentationError = NewAtom("representation_error")
atomReset = NewAtom("reset")
atomResourceError = NewAtom("resource_error")
atomRound = NewAtom("round")
atomSign = NewAtom("sign")
atomSin = NewAtom("sin")
Expand All @@ -173,6 +180,7 @@ var (
atomStreamOrAlias = NewAtom("stream_or_alias")
atomStreamPosition = NewAtom("stream_position")
atomStreamProperty = NewAtom("stream_property")
atomSyntaxError = NewAtom("syntax_error")
atomTan = NewAtom("tan")
atomTermExpansion = NewAtom("term_expansion")
atomText = NewAtom("text")
Expand All @@ -181,6 +189,7 @@ var (
atomTrue = NewAtom("true")
atomTruncate = NewAtom("truncate")
atomType = NewAtom("type")
atomTypeError = NewAtom("type_error")
atomUnbounded = NewAtom("unbounded")
atomUndefined = NewAtom("undefined")
atomUnderflow = NewAtom("underflow")
Expand Down
Loading

0 comments on commit 56638b9

Please sign in to comment.