defano / wyldcard

A clone of Apple's HyperCard and HyperTalk scripting language.
https://github.com/defano/wyldcard/wiki
MIT License
117 stars 12 forks source link

ANTLR grammars-v4 #32

Closed teverett closed 6 years ago

teverett commented 6 years ago

Hello @defano. The ANTLR community maintains a repository of ANTLR grammars at:

https://github.com/antlr/grammars-v4

Would you consider your Hypertalk grammar for inclusion there? It would be a welcome addition.

defano commented 6 years ago

Hi @teverett , I'd be happy to include my HyperTalk grammar. That said, a few caveats you should be aware of:

  1. It's not 100% complete (there are some areas of the language that are not implemented),
  2. It's not 100% accurate (my grammar provides a couple of syntactical extensions that are not present in Apple's HyperCard), and
  3. It was designed to match the peculiarities of my AST and parsing needs (there are simpler and more coherent ways to represent the grammar, IMO).

Provided you're okay with these limitations, I'm happy to submit a PR. Let me know if there are specific contribution instructions I should be aware of other than those posted in your README.

teverett commented 6 years ago

I'm ok with those caveats: most of the rest of the grammars are similar. At the least, if gives your grammar wider exposure, and with any luck others will submit improvements.

I look forward to the PR, and thanks!

On Sun, Nov 19, 2017 at 6:52 PM, Matt DeFano notifications@github.com wrote:

Hi @teverett https://github.com/teverett , I'd be happy to include my HyperTalk grammar. That said, a few caveats you should be aware of:

  1. It's not 100% complete (there are some areas of the language that are not implemented),
  2. It's not 100% accurate (my grammar provides a couple of syntactical extensions that are not present in Apple's HyperCard), and
  3. It was designed to match the peculiarities of my AST and parsing needs (there are simpler and more coherent ways to represent the grammar, IMO).

Provided you're okay with these limitations, I'm happy to submit a PR. Let me know if there are specific contribution instructions I should be aware of other than those posted in your README.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/defano/hypertalk-java/issues/32#issuecomment-345571244, or mute the thread https://github.com/notifications/unsubscribe-auth/ABK1Zjs-nyCqIFSG9DDTmkIH_rYa8T7Qks5s4NtFgaJpZM4QjftN .

-- A better world shall emerge based on faith and understanding - Douglas MacArthur

defano commented 6 years ago

Submitted and merged.