GYP is….python?! I ALWAYS thought it was some ultra-abstract JSON :o…this 
explains why there is barely any parser.
Am Do. Jan. 23 2014 17:14:20 schrieb Tim Caswell:

> They are called python comments in this case because gyp files are in fact 
> python code.  Yes, python does have a lot of syntax overlap with JS and shell 
> code.
> 
> 
> On Thu, Jan 23, 2014 at 9:48 AM, Kevin Ingwersen <ingwie2...@googlemail.com> 
> wrote:
> I thought those were more likely called „shell-like comments“, as they’re 
> used in Shibangs too x3. Thanks for the info anyway! ^^
> Am Do. Jan. 23 2014 16:44:37 schrieb Fedor Indutny:
> 
> > They just start with '#' . I think you better Google it anyway ;)
> >
> > On Thu, Jan 23, 2014 at 7:37 PM, Kevin Ingwersen
> > <ingwie2...@googlemail.com> wrote:
> >> Turn sout that digging npmjs.org revealed a very small amount of gyp
> >> handlers. I havent tried one, but i feel like they could be quite old :p
> >>
> >> But what is that about python comments? I never did python myself.
> >> Am Do. Jan. 23 2014 16:00:18 schrieb Arnout Kazemier:
> >>
> >> Yeah, I noticed that after pressing send, and a find/replace should take 
> >> out
> >> most of these.
> >>
> >> On Thursday 23 January 2014 at 15:58, Fedor Indutny wrote:
> >>
> >> I meant python comments:
> >> https://github.com/joyent/node/blob/master/node.gyp#L83
> >>
> >> But I think some simple regexp to trim them and eval could really make
> >> the trick work.
> >>
> >> On Thu, Jan 23, 2014 at 6:56 PM, Arnout Kazemier <i...@3rd-eden.com> wrote:
> >>
> >> Then you could do something like `data = (new Function('return '+ gyp)())`
> >> to get the data.
> >>
> >> Founder: 3rd-Eden
> >> Product: Observe.it
> >>
> >> Lead Software Engineer: Nodejitsu.com
> >>
> >>
> >> Twitter: @3rdEden
> >>
> >> Github: @3rd-Eden
> >>
> >> Skype: arnoutkazemier
> >>
> >> Facebook: arnout.kazemier
> >>
> >> Mobile: +31623254031
> >>
> >> On Thursday 23 January 2014 at 15:15, Fedor Indutny wrote:
> >>
> >> Won't work either, I guess. As it may contain comments.
> >>
> >> On Thu, Jan 23, 2014 at 6:15 PM, Arnout Kazemier <i...@3rd-eden.com> wrote:
> >>
> >> eval it?
> >>
> >> On Thursday 23 January 2014 at 15:01, Kevin Ingwersen wrote:
> >>
> >> Hey!
> >>
> >> Is it possible to parse GYP files in nodejs? JSON.parse fails at the first
> >> single-quote x.x
> >>
> >> Kind regards, Ingwie
> >>



-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to