Giter Site home page Giter Site logo

Objective-C Scanner about coderay HOT 14 OPEN

rubychan avatar rubychan commented on June 19, 2024
Objective-C Scanner

from coderay.

Comments (14)

korny avatar korny commented on June 19, 2024

Since I didn't start this one yet, let's push it to 1.2.

from coderay.

josefsalyer avatar josefsalyer commented on June 19, 2024

Hi! I need this. What do you need to get rolling?

from coderay.

korny avatar korny commented on June 19, 2024

More free time ;-)

And example code, lots of crazy syntax examples.

from coderay.

nathany avatar nathany commented on June 19, 2024

I have a few Objective-C books I may be able to pull examples from.

from coderay.

josefsalyer avatar josefsalyer commented on June 19, 2024

I have more than few projects to pull code from.

Josef Salyer
@josefsalyer
480.286.5875

On Jul 26, 2013, at 12:16 PM, Nathan Youngman [email protected] wrote:

I have a few Objective-C books I may be able to pull examples from.


Reply to this email directly or view it on GitHub.

from coderay.

nathany avatar nathany commented on June 19, 2024

Cool. Checkout the https://github.com/rubychan/coderay-scanner-tests repo.

from coderay.

josefsalyer avatar josefsalyer commented on June 19, 2024

I forked it and checked it out. Is there a particular git workflow that I
should use? Also, where is a good place to drop sample .h/.m files?

On Fri, Jul 26, 2013 at 5:31 PM, Nathan Youngman
[email protected]:

Cool. Checkout the https://github.com/rubychan/coderay-scanner-tests repo.


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-21649480
.

from coderay.

nathany avatar nathany commented on June 19, 2024

You'll need to create an objective-c folder with some .in.m files, just take a peek at how the other languages do it. I'm pretty sure there is a rake test to do some setup for you, but I don't remember off-hand. Feature branch + pull request would be grande.

from coderay.

korny avatar korny commented on June 19, 2024

The easiest way should be to check out the CodeRay repo and just run rake test:scanners. It checks out coderay-scanner-tests automatically then into a subfolder.

from coderay.

tompave avatar tompave commented on June 19, 2024

I'd like to start working on this one.
Are the guidelines still valid?
Is there any previous work I should be aware of?

from coderay.

korny avatar korny commented on June 19, 2024

Are the guidelines still valid?

Yes.

Is there any previous work I should be aware of?

Only what's in this PR, afaik.

from coderay.

tompave avatar tompave commented on June 19, 2024

Ok, thanks.
I think I'll base my work on the C scanner, as Objective-C is a strict superset of C.

from coderay.

korny avatar korny commented on June 19, 2024

Good idea. I guess for some things you need nested states or multiple state variables. Other scanners should give you lots of examples how to approach this, but I found using a new method optimized for each language to be the best way.

from coderay.

tompave avatar tompave commented on June 19, 2024

Ok, thanks. I'll definitely ask here when I reach that stage.
80% of the work should be about recognizing the object oriented layer, that thankfully has a very precise syntax borrowed from Smalltalk.
I'll also need to consider all tokens starting with 2 capital letters as Class names, as that is the Objective-C convention.

from coderay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.