Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ECMAScript/JavaScript grammar?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tony  
View profile  
 More options Jun 3 2009, 8:02 pm
From: Tony <basc...@gmail.com>
Date: Wed, 3 Jun 2009 18:02:03 -0600
Local: Wed, Jun 3 2009 8:02 pm
Subject: ECMAScript/JavaScript grammar?

Hello everyone,

I'm wondering if someone has already written a Treetop grammar for
JavaScript.  Has anyone?

Looking through the web site one of the first things I was trying to find
was a collection of Treetop grammars for existing languages, and was
somewhat disappointed not to find any.

I saw the examples directory in the github repo contained "lambda_calculus"
and that was it.

I think it'd be really handy to have a central collection of grammars that
others have already implemented for various languages.

--
Tony Arcieri
medioh.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Gamsjaeger  
View profile  
 More options Jun 3 2009, 10:54 pm
From: Martin Gamsjaeger <gamsnj...@gmail.com>
Date: Thu, 4 Jun 2009 04:54:54 +0200
Local: Wed, Jun 3 2009 10:54 pm
Subject: Re: ECMAScript/JavaScript grammar?
Tony,

+1 on that, and i would prefer http://github.com

I know that http://snippets.dzone.com/ is supposed to host some
treetop grammars, but i never find an easy way to browse them all,
also, there is really *no* benefit compared to github.

A github repo, maybe called treetop-grammars or something, would be
really helpful, but would need some sort of gatekeeper. A different
(or additional) approach, would be to establish a naming convention
for the grammars, something like

treetop-mygrammar_name

maybe, so that it's easily searchable on github. Datamapper or Merb
for example go this way with their plugins. There's no need for a
central gatekeeper and it's still easy to find/fork treetop grammars.
The naming convention should be spoken out loud though, so that almost
everyone will see a reference to it.

cheers
snusnu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Taylor  
View profile  
 More options Jun 4 2009, 12:17 am
From: Scott Taylor <sc...@railsnewbie.com>
Date: Thu, 04 Jun 2009 00:17:35 -0400
Local: Thurs, Jun 4 2009 12:17 am
Subject: Re: ECMAScript/JavaScript grammar?

Martin Gamsjaeger wrote:
> Tony,

> +1 on that, and i would prefer http://github.com

+1 on github.

I just sent Chris a feature request to have it (as well as Lex & Yacc)
put on the search page:

http://github.com/search

Will report back if this gets implemented.

Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clifford Heath  
View profile  
 More options Jun 10 2009, 3:31 am
From: Clifford Heath <clifford.he...@gmail.com>
Date: Wed, 10 Jun 2009 17:31:15 +1000
Local: Wed, Jun 10 2009 3:31 am
Subject: Re: ECMAScript/JavaScript grammar?
On 04/06/2009, at 10:02 AM, Tony wrote:

> I'm wondering if someone has already written a Treetop grammar for  
> JavaScript.  Has anyone?

I thought I saw one posted a while back, but can't find the reference  
now.
A friend was working on one but was new to Treetop and had bugs to iron
out - I've tried contacting him on Twitter as @whatupdave

Otherwise I have his (still-not-working) version I can probably share,  
it might
be a good start.

Clifford Heath.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clifford Heath  
View profile  
 More options Jun 12 2009, 3:56 am
From: Clifford Heath <clifford.he...@gmail.com>
Date: Fri, 12 Jun 2009 17:56:07 +1000
Local: Fri, Jun 12 2009 3:56 am
Subject: Re: ECMAScript/JavaScript grammar?
On 10/06/2009, at 5:31 PM, Clifford Heath wrote:

> A friend was working on one but was new to Treetop and had bugs to  
> iron
> out - I've tried contacting him on Twitter as @whatupdave

Dave just posted his grammar (still not working correctly) on github,
at <http://github.com/snappycode/jpower/tree/master>

If someone is of a mind to fork and fix, I'm sure it'll benefit others
as well.

Clifford Heath.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bjørn Arild Mæland  
View profile  
 More options Jun 13 2009, 1:20 pm
From: Bjørn Arild Mæland <bjorn.mael...@gmail.com>
Date: Sat, 13 Jun 2009 10:20:39 -0700 (PDT)
Local: Sat, Jun 13 2009 1:20 pm
Subject: Re: ECMAScript/JavaScript grammar?
Instead of a separate gate-keeped repos, I took the liberty to create
a page in the Wiki at GitHub: http://wiki.github.com/nathansobo/treetop/treetop-grammars-in-the-wild

The list is not very comprehensive at the moment, I just took the most
obvious ones from the search result page for "treetop" on GitHub.

-Bjørn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »