Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Spoon documentation #322

Closed
GerardPaligot opened this issue Aug 31, 2015 · 8 comments
Closed

Spoon documentation #322

GerardPaligot opened this issue Aug 31, 2015 · 8 comments

Comments

@GerardPaligot
Copy link
Contributor

After a survey at the community, a lot of contributors/users asked a real documentation of the usage of Spoon. The goal of this issue is to talk about this documentation. What do you want in it? What seem important for you? Which structure do you want? etc.

For a first version, we think to aggregate this scientific paper of Spoon, the FAQ and some information that we can find in package.html files in the project.

What do you think about that?

@monperrus
Copy link
Collaborator

we can add a section about the new path API

@pschichtel
Copy link
Contributor

Maybe take a few example use cases and provide a "walk through"

@alcides
Copy link
Contributor

alcides commented Sep 3, 2015

I would like an explanation of the factory classes (Core, Code, etc..). It was hard to understand how to manually create an AST.

And I believe examples of how to modify an AST with new nodes is important, because not everything can be done using the Substitutions API.

@GerardPaligot
Copy link
Contributor Author

Hi everyone,

Yesterday, we have updated the website of Spoon to include the documentation in a near future!

we also thought about a plan for this documentation:

  1. Getting Started

    1.1. Introduction
    1.2. First Processor
    1.3. First transformation

  2. Usage

    2.1. Command Line
    2.2. Maven
    2.3. Gradle

  3. Spoon Meta Model

    3.1. Elements
    3.2. Code elements
    3.3. References
    3.4. How to create an AST?
    3.5. How to modify an AST?

  4. Quering source code elements

    4.1. Filter
    4.2. Path

  5. Processing source code elements

    5.1. Processor for elements
    5.2. Processor for annotations

  6. Templating source code

    6.1. Template definition
    6.2. Template instantiation
    6.3. Template substitution
    6.4. Literal template parameters

I think we have all ideas of the community in this plan but if you have new idea to integrate at this plan, we are always open to integrate them!

@pschichtel
Copy link
Contributor

maybe reference some open source projects using spoon? I personally like to learn about libraries through existing projects.

@GerardPaligot
Copy link
Contributor Author

@pschichtel For that, we have this page.

@pschichtel
Copy link
Contributor

Oh missed that one, fine then

@GerardPaligot
Copy link
Contributor Author

yay! Documentation is already available on the spoon website!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants