Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Generator discovery #53

Open
DavidDudson opened this issue Jan 19, 2018 · 0 comments
Open

Generator discovery #53

DavidDudson opened this issue Jan 19, 2018 · 0 comments

Comments

@DavidDudson
Copy link
Member

This will be the main task for 0.2

Basically, I would like the following....

- src
 |- gen
   |-scala 

To contain generators....

The idea I have is the following.

  1. Use scalameta semanticDB with semanticdb attached to compile a list of generators and their fully qualified names
  • This will allow us to synthetically generate the name parameter of all generators
  • The generator will then look something like object HelloWorld extends Generator
  1. Synthetically generate an object with a method that takes a single Term.Select and returns a generator
  2. Compile the generator sourceset into a jar.
  3. Allow a list of "generator dependencies" which are dependencies available to sbt, as well as compile.
  4. Create a larger map which is the composition of all generator libraries
  5. Use the larger maps keyset to list all available generators, use it's apply method to retrieve generators
  6. Run expansion
@DavidDudson DavidDudson added this to the Version 0.2 milestone Jan 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant