Skip to content
Snippets Groups Projects
This project is mirrored from https://www-csr.bessy.de/control/SoftDist/sequencer/repo/branch-2-2.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Oct 27, 2013
  2. Oct 17, 2013
    • benjamin.franksen's avatar
      snc: restructured parsing of types · 971a23dc
      benjamin.franksen authored
      We now build normal syntax nodes during parsing, re-using node types from
      the expression syntax (E_VAR, E_BINOP, E_PRE, E_SUBSCR, E_FUNC). Together
      with the recent change in generating types, this means we no longer need the
      backward parent links in the type structure. Most of the code in var_types.c
      is now much easier to understand and modify.
      
      Also made the tentative change to represent "const" not as a type node with
      a child pointer, but rather with a boolean flag. This is in anticipation of
      adding the "pv" type operator in the hope that using yet another flag to
      represent it will make analysis of a type easier. It could well be that I
      revert this change if it turns out that this makes things more difficult. A
      first indication is that in var_types.c this already complicates some of the
      routines. So I left most of the T_CONST cases in there, only disabled them
      with #if 0...#endif.
      971a23dc
  3. Oct 14, 2013
  4. Oct 13, 2013
  5. Jul 31, 2014
  6. Oct 21, 2013
  7. Oct 13, 2013
    • benjamin.franksen's avatar
      snc: keep the order of literal C code in the generated code · 3a384f4e
      benjamin.franksen authored
      Previously literal C code blocks from the initial definition section
      (before state sets) went before everything else, and those from the
      final definitions section (after the state sets) were grouped together
      at the end. Now we try to generate stuff in a way that keeps the
      relative order the same as in the SNL source.
      
      This approach has limitations: top-level variable declarations must be
      generated in one block since in re-entrant mode they all go into a large
      struct; there are also auto-generated delarations for SNL function
      definitions. Both are now placed (in this order) after all the other
      definitions in the initial definition section.
      
      The resulting limitation for literal C code (it cannot refer to global
      SNL variables) is the same as it was before. A similar limitation now
      applies to SNL functions defined in the initial section (which makes
      them less useful when defined there).
      R2-1-99-2
      3a384f4e
    • benjamin.franksen's avatar
    • benjamin.franksen's avatar
      snc: removed header file generation · e71c62da
      benjamin.franksen authored
      The new SNL functions make a lot of embedded C code, especially C
      function definitions, obsolete. This means the header file is not as
      useful as I thought. On the other hand, function definitions may depend
      on stuff that has been declared before. So it becomes more important to
      keep the order of definitions in the output as similar as possible to
      that in the input file (the variables struct being the most notable
      exception). Grouping some stuff in a header file and other stuff in the
      C file makes this almost impossible.
      e71c62da
  8. Oct 09, 2013
  9. Oct 08, 2013
  10. Oct 07, 2013
  11. Oct 04, 2013
  12. Oct 02, 2013
  13. Oct 07, 2013
  14. Oct 05, 2013
  15. Oct 04, 2013
Loading