antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.11k stars 3.28k forks source link

Add an extension to grammarC #2541

Open hounaidarekik opened 5 years ago

hounaidarekik commented 5 years ago

I want to add extension to grammarC , i am using antlr4. the first problem that it doesn't know the lib . the second one i add to typeQualifier 'input','outpu','shared'

    typeQualifier
:   'const'
|   'restrict'
|   'volatile'
|   '_Atomic'
|   'shared'
|   'input'
|   'output'
;

but when i run my code i had input as a type spicifier in the AST. Any advise or links can help me :D thanks.

ericvergnaud commented 5 years ago

Hi, the place for support is the google discussion group. Eric

Le 2 mai 2019 à 17:20, hounaida notifications@github.com a écrit :

I want to add extension to grammarC , i am using antlr4. the first problem that it doesn't know the lib . the second one i add to typeQualifier 'input','outpu','shared'

typeQualifier

: 'const' | 'restrict' | 'volatile' | '_Atomic' | 'shared' | 'input' | 'output' ; but when i run my code i had input as a type spicifier in the AST. Any advise or links can help me :D thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/2541, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZNQJAAIGRJA4DP244FLTDPTKW4LANCNFSM4HJ4UXMQ.

hounaidarekik commented 5 years ago

Hi, the place for support is the google discussion group. Eric Le 2 mai 2019 à 17:20, hounaida @.***> a écrit : I want to add extension to grammarC , i am using antlr4. the first problem that it doesn't know the lib . the second one i add to typeQualifier 'input','outpu','shared' typeQualifier : 'const' | 'restrict' | 'volatile' | '_Atomic' | 'shared' | 'input' | 'output' ; but when i run my code i had input as a type spicifier in the AST. Any advise or links can help me :D thanks. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2541>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZNQJAAIGRJA4DP244FLTDPTKW4LANCNFSM4HJ4UXMQ.

hi, Thanks for your response. Can you give me the link ,please?

Thomasb81 commented 5 years ago

Here is the web page with all information related to support: https://www.antlr.org/support.html

The discussion group: https://groups.google.com/forum/#!forum/antlr-discussion