What is Mercury written in?
Mercury uses a bootstrap chain from Prolog (documented).
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Bootstrap Chain
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Prolog | 90% | Mercury compiler initially written in Prolog, then self-hosted | Source |
Influenced By
- Prolog — Mercury is statically-typed descendant of Prolog
- ML — Mercury influenced by ML's static type system
Frequently Asked Questions
What language is Mercury written in?
Mercury is primarily implemented in Prolog. See the implementation section above for details and source references.
What languages influenced Mercury?
Mercury was influenced by Prolog, ML among others. See the influence section above for the full list.