1. 20 Jul, 2019 1 commit
    • Eric Myhre's avatar
      Extract some error path generation. · 83bbe5e1
      Eric Myhre authored
      This isn't a net negative size diff yet, but it certainly will have
      that effect momentarily when we add a generator for another kind.
      More importantly, it reduces the set of functions in the real
      generator file to *just* the relevant ones.
      
      We'll almost certainly extend this to cover the NodeBuilder half of
      things as well, later; I just haven't gotten there yet.
      83bbe5e1
  2. 15 Jul, 2019 2 commits
    • Eric Myhre's avatar
      Track some important design information as tests. · 8c630e8a
      Eric Myhre authored
      The Go Playground is also often a perfectly good home for these things;
      I've also used "_rsrch" directories in other projects, especially if
      benchmarks of nontrivial runtime and setup get involved; but this
      will suffice for this quick factcheck here and now.
      8c630e8a
    • Eric Myhre's avatar
      Cut gordian knot. · ff43f7af
      Eric Myhre authored
      I'm solving the decorum problem by making "temporary" builder methods for the
      schema.Type values as necessary.  This will allow the gengo package to use
      them freely for now.  When we're done with all this, I want to restrict building
      of schema.Type values to a single method in the schema package which takes the
      "ast" types -- the ones we're hoping to codegen (!) -- and do lots of checks
      and cross-linking; the temporary builder methods will do *none*, and *of course*
      they can't take the "ast" types yet since they don't exist yet.
      
      Boom, cycle broken.
      
      Also: fix generateStringKind from taking a TypeName redundantly.
      ff43f7af
  3. 13 Jul, 2019 1 commit
    • Eric Myhre's avatar
      Move minima/thunks to own file in gen. · fbc10cb8
      Eric Myhre authored
      This was triggered by an experiment about generating even more 'minima'
      like this, such as a batch of helper structs which would hold all the
      common "no, you can't do operation X on something of kind Y" methods.
      However, that diff isn't here; and is probably going to turn out to be
      abandoned, because after trying it out, I found that it was pretty hard
      to do good error messages (which... was pretty central to the point)
      with that approach.  So, more on those attempts later.
      Signed-off-by: default avatarEric Myhre <hash@exultant.us>
      fbc10cb8
  4. 10 Jul, 2019 7 commits
  5. 01 Jul, 2019 2 commits
    • Eric Myhre's avatar
      Drop what remains of typed/declaration. · 231d4e87
      Eric Myhre authored
      What was left in this last file was mostly docs; and while some of
      that text might be good, we can either write it fresh or come
      dredge it out of history when we re-build something like this package.
      
      Fix the few remaining references to declaration by switching them
      to refer to the reified equivalents in the schema package (which is
      what all those references should have been anyway).
      Signed-off-by: default avatarEric Myhre <hash@exultant.us>
      231d4e87
    • Eric Myhre's avatar
      Move typed/gen -> schema/gen/go. · 3c5d00d4
      Eric Myhre authored
      Dropped older PoC/draft codegen code at the same time; that
      was a stale idea and the draft that followed it is already
      clearly shaping up better.
      Signed-off-by: default avatarEric Myhre <hash@exultant.us>
      3c5d00d4