ichiban / prolog

The only reasonable scripting engine for Go.
MIT License
567 stars 27 forks source link

absorb State into VM #264

Closed ichiban closed 1 year ago

ichiban commented 1 year ago

Redo https://github.com/ichiban/prolog/pull/262 step by step.

codecov[bot] commented 1 year ago

Codecov Report

Base: 98.87% // Head: 98.99% // Increases project coverage by +0.12% :tada:

Coverage data is based on head (5f59e78) compared to base (aa140a7). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #264 +/- ## ========================================== + Coverage 98.87% 98.99% +0.12% ========================================== Files 22 22 Lines 7278 7276 -2 ========================================== + Hits 7196 7203 +7 + Misses 62 56 -6 + Partials 20 17 -3 ``` | [Impacted Files](https://codecov.io/gh/ichiban/prolog/pull/264?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase) | Coverage Δ | | |---|---|---| | [cmd/1pl/interpreter.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-Y21kLzFwbC9pbnRlcnByZXRlci5nbw==) | `100.00% <100.00%> (ø)` | | | [engine/builtin.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2J1aWx0aW4uZ28=) | `99.07% <100.00%> (-0.03%)` | :arrow_down: | | [engine/clause.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2NsYXVzZS5nbw==) | `98.58% <100.00%> (ø)` | | | [engine/dcg.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2RjZy5nbw==) | `100.00% <100.00%> (+3.89%)` | :arrow_up: | | [engine/exception.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2V4Y2VwdGlvbi5nbw==) | `100.00% <100.00%> (ø)` | | | [engine/number.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL251bWJlci5nbw==) | `100.00% <100.00%> (ø)` | | | [engine/promise.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3Byb21pc2UuZ28=) | `100.00% <100.00%> (ø)` | | | [engine/stream.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3N0cmVhbS5nbw==) | `100.00% <100.00%> (ø)` | | | [engine/term.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3Rlcm0uZ28=) | `100.00% <100.00%> (ø)` | | | [engine/text.go](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3RleHQuZ28=) | `100.00% <100.00%> (ø)` | | | ... and [5 more](https://codecov.io/gh/ichiban/prolog/pull/264/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.