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

Allow syntactic variable to be associated with values. #24

Open
lionelvillard opened this issue May 19, 2016 · 0 comments
Open

Allow syntactic variable to be associated with values. #24

lionelvillard opened this issue May 19, 2016 · 0 comments
Assignees

Comments

@lionelvillard
Copy link
Contributor

Use case:

cterm :  VARIABLE<variable> csortanno?
             ...

Currently, because of the sort annotation, this grammar production corresponds to this enumeration sort:

data Cterm( Cterm_A1(String, List) ... )

which is an issue because the variable is not anymore a Cterm.

One possible solution is to allow syntactic variable to carry values, just like construction. In a sense, a syntactic variable is a special construction linked to a variable to allow substitution, which can be expressed as follows:

data Cterm ( variable Cterm_A1(String, List<Csortanno>) ... )

Notice the special variable keyword, replacing allows-variable.

variable by itself is still allowed and represent simple variable (with no additional values).

@lionelvillard lionelvillard self-assigned this May 19, 2016
lionelvillard added a commit that referenced this issue May 19, 2016
@lionelvillard lionelvillard added bug and removed bug labels May 19, 2016
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