Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 26 2016 10:06
    dkudrin closed #30
  • Oct 26 2016 10:06
    dkudrin commented #30
  • Oct 24 2016 14:51
    killercup commented #30
  • Oct 24 2016 14:22
    dkudrin commented #30
  • Oct 24 2016 14:20
    dkudrin opened #30
  • May 04 2015 18:28
    killercup commented #14
  • May 04 2015 15:45
    jonruttan commented #14
  • Apr 29 2015 23:08
    jonruttan commented #14
  • Apr 29 2015 22:57
    jonruttan commented #14
  • Apr 29 2015 21:38
    killercup commented #14
  • Apr 29 2015 21:13
    jonruttan commented #14
  • Apr 29 2015 18:18
    killercup labeled #29
  • Apr 29 2015 18:18
    killercup opened #29
  • Apr 29 2015 18:16
    killercup commented #14
  • Apr 29 2015 17:44
    killercup closed #28
Jon Ruttan
@jonruttan
Hi @killercup. Thanks for setting up this chat for the project.
Most of the renderer is done. I imagine I’ll have this module out later today.
Jon Ruttan
@jonruttan
I made the renderer work like first-mate. It loads up renderer options which are stored in JSON/CSON files, and finds the appropriate one based on the selected output format.
Jon Ruttan
@jonruttan
ttyl
Jon Ruttan
@jonruttan
I decided to remove some of the code-smell coming from the atom/highlights repo’s renderer by separating out the code for the scope stack into its own class.
I’ve still gotta write a bunch of specs for it and integrate it into the renderer class, then write specs for that, so it’s gonna take another day or two before I get this thing published to npm.
Jon Ruttan
@jonruttan
It’s turning into a pretty sweet lexer/render pipeline. With the proper transformation function in between the lexer and renderer it could be used as a CoffeeScript -> EcmaScript6 conversion tool, for instance.
The CLI scripts can be piped together in a shell as well. They also can be fed custom grammars and renderers via the CLI arguments, so they’re a pretty powerful pair.
Pascal Hertleif
@killercup
Hey @jonruttan, sorry for setting this up and then not answering… gitter seems to have some crazy notification settings ;)
I love how your modules work as a CLI as well, it
it's really nice to just pipe some stuff together
Pascal Hertleif
@killercup
@jonruttan I'm a bit disturbed by the amount of (\w*)Sync functions, but at the same time I'm certain they won't block anything in grock since those are all calls for the CLI… I'm using ESLint for another project and there is a special lint for using sync functions ;)
Jon Ruttan
@jonruttan
So you did set this up — I figured I must have been mistaken that you'd set it up.
I'm glad you like the CLI interface to the modules, I figured they might work out to be handy. The atom/highlights project that I'd used as a base had a CLI, so it was just a small matter to modify and customise it for each fork.
Jon Ruttan
@jonruttan
Don't worry about the (\w*)Sync functions sneaking their way into Grock, they're inherited from the parent project. At some point I'll migrate the CLI stuff for the textlex and delexe projects away from them as well.
Jon Ruttan
@jonruttan
Thanks for heads-up about ESLint, I didn't know about it. I'll add it to the project's Gruntfiles. Are there any particular settings you'd recommend for it?
Pascal Hertleif
@killercup
@jonruttan i'm not sure it makes sense to use eslint for js code coffeescripts outputs. you're already using coffeelint, right?
Jon Ruttan
@jonruttan
Yeah, @killercup I am using coffeelint for these projects.
Pascal Hertleif
@killercup
that should already cover the syntactic stuff eslint does for regular js
Jon Ruttan
@jonruttan
Since ESLint seemed to be doing a deeper scan with regards to the Sync stuff I was wondering if that was the way to go.
Pascal Hertleif
@killercup
yeah, eslint does a bunch of extra stuff, there are also some plugins for it. problem is how well this stuff works with what coffee outputs, though
Jon Ruttan
@jonruttan
I haven’t looked into coffeelint any further to see if it does these sorts of scans.
Yeah, I was finding that last night when I tried it.
Pascal Hertleif
@killercup
e.g., can it use sourcemaps or do you have to read 20 lines of coffee to get what that lint error says?
there are a bunch of coffeelint plugins it seems https://www.npmjs.com/browse/keyword/coffeelint
i've been writing stuff in rust as well as in js for some weeks now and for my latest node/react project i set up eslint, jsxhint and jscs because i missed how awesome the rust compiler is :D
Jon Ruttan
@jonruttan
lol, that’s awesome.
I’ve been checking out Rust a bit lately, but I’ve not used it yet. I knew that the compiler was a big part of how it was structured, I didn’t realize the compiler was that much better.
I’ll try it out, see what I’m missing.