# Is there any way to split the grammar into multiple files?

**URL:** https://discuss.codemirror.net/t/is-there-any-way-to-split-the-grammar-into-multiple-files/3530
**Category:** Lezer
**Created:** [September 16, 2021, 10:15am UTC](https://discuss.codemirror.net/t/is-there-any-way-to-split-the-grammar-into-multiple-files/3530 "2021-09-16T10:15:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sfc-gh-nlele](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/sfc-gh-nlele/32/1105_2.png) [@sfc-gh-nlele](https://discuss.codemirror.net/u/sfc-gh-nlele)
#### Post date: [September 16, 2021, 10:15am UTC](https://discuss.codemirror.net/t/is-there-any-way-to-split-the-grammar-into-multiple-files/3530/1 "2021-09-16T10:15:22Z")

</div>

(Making a separate post for this)

For larger grammars, is it possible to split the grammar into multiple files/modularise it? The Lezer grammars I checked seem to be contained in a single file.

I’m assuming the answer might be no, but just wanted to confirm! Thank you!

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [September 16, 2021, 11:47am UTC](https://discuss.codemirror.net/t/is-there-any-way-to-split-the-grammar-into-multiple-files/3530/2 "2021-09-16T11:47:02Z")

</div>

No, that’s not something the tool supports.
