ichiban / prolog

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

Module #295

Open ichiban opened 1 year ago

ichiban commented 1 year ago

https://github.com/ichiban/prolog/issues/292

This PR implements a SICStus style module system.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 66.47% and project coverage change: -3.57% :warning:

Comparison is base (c682cd3) 99.21% compared to head (9673e7f) 95.65%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #295 +/- ## ========================================== - Coverage 99.21% 95.65% -3.57% ========================================== Files 23 24 +1 Lines 7272 7777 +505 ========================================== + Hits 7215 7439 +224 - Misses 51 321 +270 - Partials 6 17 +11 ``` | [Files Changed](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase) | Coverage Δ | | |---|---|---| | [engine/atom.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2F0b20uZ28=) | `100.00% <ø> (ø)` | | | [engine/env.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2Vudi5nbw==) | `97.96% <ø> (ø)` | | | [engine/module.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL21vZHVsZS5nbw==) | `3.38% <3.38%> (ø)` | | | [engine/text.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3RleHQuZ28=) | `74.40% <58.33%> (-25.60%)` | :arrow_down: | | [engine/clause.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2NsYXVzZS5nbw==) | `94.77% <61.90%> (-5.23%)` | :arrow_down: | | [engine/builtin.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL2J1aWx0aW4uZ28=) | `95.36% <69.27%> (-4.17%)` | :arrow_down: | | [engine/vm.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3ZtLmdv) | `93.65% <70.73%> (-0.81%)` | :arrow_down: | | [engine/term.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3Rlcm0uZ28=) | `93.22% <82.60%> (-6.78%)` | :arrow_down: | | [engine/parser.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-ZW5naW5lL3BhcnNlci5nbw==) | `99.13% <96.29%> (-0.28%)` | :arrow_down: | | [interpreter.go](https://app.codecov.io/gh/ichiban/prolog/pull/295?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yutaka+Ichibangase#diff-aW50ZXJwcmV0ZXIuZ28=) | `98.00% <96.42%> (-2.00%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.