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

MERGEの挙動を修正する #18

Open
junk0612 opened this issue Feb 17, 2016 · 3 comments
Open

MERGEの挙動を修正する #18

junk0612 opened this issue Feb 17, 2016 · 3 comments

Comments

@junk0612
Copy link
Member

具体案なし。

@exKAZUu
Copy link
Member

exKAZUu commented Feb 18, 2016

前、指摘した例をここに記載してくれ。

@junk0612
Copy link
Member Author

variableDeclarator
    :   variableDeclaratorId$MERGE ('=' variableInitializer$value)?
    ;

variableDeclaratorId
    :   Identifier$name dims?$type
    ;

このようなとき、MERGEを書く側でvariableDeclaratorId.IdentefierやvariableDeclaratorId.dimsを指定できたほうがいいのではないか。

@junk0612
Copy link
Member Author

$MERGEのところに$MERGE(name -> varName)みたいなのを書くことでmapのkeyを置き換えることができるようにする

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

No branches or pull requests

2 participants