Skip to content

Add moon config post processing and mq command#134

Merged
Yoorkin merged 6 commits into
masterfrom
moon-mod
May 14, 2026
Merged

Add moon config post processing and mq command#134
Yoorkin merged 6 commits into
masterfrom
moon-mod

Conversation

@Yoorkin
Copy link
Copy Markdown
Contributor

@Yoorkin Yoorkin commented May 14, 2026

Summary

  • Add public parse_moon_pkg, parse_moon_mod, and parse_moon_work APIs that return post-processed Ast values and diagnostics.
  • Move legacy JSON conversion into moon_config, including top-level duplicate folding for repeated entries such as rule.
  • Add native cmd/mq and WASI cmd/wasm/mq commands for emitting legacy-compatible JSON from MoonBit config DSL input.

Validation

  • moon fmt
  • moon test --target native moon_config
  • moon test --target wasm moon_config
  • moon check --target native cmd/mq
  • moon check --target wasm cmd/wasm/mq
  • moon info moon_config cmd/mq
  • moon info --target wasm cmd/wasm/mq

@Yoorkin Yoorkin marked this pull request as ready for review May 14, 2026 04:01
@Yoorkin Yoorkin requested a review from myfreess May 14, 2026 04:02
@Yoorkin Yoorkin merged commit 5f9a4db into master May 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant