https://github.com/coyote-31/tree-sitter-eu4mod
đĻ Tree sitter parser package for â Europa Universalis IV â
https://github.com/coyote-31/tree-sitter-eu4mod
eu4 europa-universalis-4 europa-universalis-iv paradox-interactive tree-sitter
Last synced: 11 months ago
JSON representation
đĻ Tree sitter parser package for â Europa Universalis IV â
- Host: GitHub
- URL: https://github.com/coyote-31/tree-sitter-eu4mod
- Owner: Coyote-31
- License: mit
- Created: 2020-02-28T09:49:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-03T08:48:33.000Z (about 1 year ago)
- Last Synced: 2025-06-21T06:45:18.557Z (about 1 year ago)
- Topics: eu4, europa-universalis-4, europa-universalis-iv, paradox-interactive, tree-sitter
- Language: C
- Homepage: https://www.npmjs.com/package/tree-sitter-eu4mod
- Size: 2.55 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **`tree-sitter-eu4mod`**
[](https://www.npmjs.com/package/tree-sitter-eu4mod) [](https://github.com/Coyote-31/tree-sitter-eu4mod/actions?query=workflow%3A%22Node.js+CI%22) [](https://github.com/Coyote-31/tree-sitter-eu4mod/blob/master/LICENSE)
đĻ `tree-sitter-eu4mod` is a global grammar parser for **Europa Universalis IV**.
## đ Description
This package is a global **grammar parser** for **EU4** files. Focusing on developers working on EU4 mods and providing them a grammar parser able to handle any extension's file listed below in EU4 directory for modding purpose.
### How to install :
To install this package from the [npmjs repository](https://www.npmjs.com/package/tree-sitter-eu4mod) via CLI :
npm install tree-sitter-eu4mod
### Which EU4 file extension is managed :
Extension | Supported
:---: | :---:
.mod | â
.gfx | â
.gui | â
.yml | â
### Which text editor use this package :
- **[â Atom](https://atom.io)** : With the package [`language-eu4mod`](https://atom.io/packages/language-eu4mod) on [atom.io](https://atom.io/packages/) registry.
## đ Documentation
### How it works :
The parser is build with a generator tool from the dependency package [`tree-sitter`](https://github.com/tree-sitter/tree-sitter). The grammar is define with a *Javascript* file named `grammar.js` then [`tree-sitter`](https://github.com/tree-sitter/tree-sitter) generate *C* libraries as parsers. And theses parsers can be used in other applications supporting [context-free grammars](https://en.wikipedia.org/wiki/Context-free_grammar) (eg. [â Atom](https://atom.io)) for the syntax highlighting of eu4 modding files.
### Source archive :
Link | Info
:---: | :---:
**[GitHub repository](https://github.com/Coyote-31/tree-sitter-eu4mod)** | [](https://github.com/Coyote-31/tree-sitter-eu4mod/commits/master)
**[Last release](https://github.com/Coyote-31/tree-sitter-eu4mod/releases/latest)** | [](https://github.com/Coyote-31/tree-sitter-eu4mod/releases/latest)
**[All releases](https://github.com/Coyote-31/tree-sitter-eu4mod/releases)** | [](https://github.com/Coyote-31/tree-sitter-eu4mod/releases)
## đ Any issue or bug **[report here](https://github.com/Coyote-31/tree-sitter-eu4mod/issues)**
If you have any issue or find a bug please :
- **[Open an issue on GitHub](https://github.com/Coyote-31/tree-sitter-eu4mod/issues)** : 
## đ See also
- **[Tree Sitter](https://tree-sitter.github.io/tree-sitter/)** (documentation web site)
- **[language-eu4mod](https://github.com/Coyote-31/language-eu4mod#README.md)** (GitHub)
- **EU4 definition** :
- **[GUI/GFX Xyloz](https://eu4.paradoxwikis.com/User:Xyloz/sandbox)** (eu4.paradoxwikis)
- **[Interface modding](https://eu4.paradoxwikis.com/Interface_modding)** (eu4.paradoxwikis)
- **[Graphical asset modding](https://eu4.paradoxwikis.com/Graphical_asset_modding)** (eu4.paradoxwikis)
## ÂŠī¸ License
**[MIT](https://github.com/Coyote-31/tree-sitter-eu4mod/blob/master/LICENSE)**