Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used parser extension specification #13

Open
NTSFka opened this issue Jun 24, 2018 · 1 comment
Open

Used parser extension specification #13

NTSFka opened this issue Jun 24, 2018 · 1 comment

Comments

@NTSFka
Copy link
Contributor

NTSFka commented Jun 24, 2018

The language is designed to support parser extensions which can add custom declaration types, statement types etc. Enabling globally outside file might be a bad idea.

The source file can have top level statement which adds parser extension to the parser and those extensions can be used later in the source.

use shard.builtin;
use shard.web;

The keyword might be different. The parser extension can be even defined in Shard file in some way without extending the parser in C++.

@NTSFka
Copy link
Contributor Author

NTSFka commented Jun 24, 2018

Parser extensions use same syntax for modules import. So the module can contain parser extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant