example-scripts

Clone Tools
  • last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- regenerated documentation

- remove useless expr statements

  1. … 1 more file in changeset.
Add another Rosetta example: Inheritance/Single

    • -0
    • +788
    ./rosetta-single-inheritance.html
    • -0
    • +23
    ./rosetta-single-inheritance.tcl
  1. … 2 more files in changeset.
rosetta-multiple-inheritance.tcl: Fix typo L3 -> C3

Remove redundant Rosetta example implementations

Added another Rosetta example: multiple inheritance

    • -0
    • +830
    ./rosetta-multiple-inheritance.html
    • -0
    • +38
    ./rosetta-multiple-inheritance.tcl
  1. … 2 more files in changeset.
Added another Rosetta example: Polymorphic copy

    • -0
    • +874
    ./rosetta-clone.html
  1. … 2 more files in changeset.
Fix typo

Adding yet another Rosetta example: Add object variable dynamically

    • -0
    • +970
    ./rosetta-add-variable.html
    • -0
    • +76
    ./rosetta-add-variable.tcl
  1. … 2 more files in changeset.
Improve output spec in Rosetta example

Adding another Rosetta example: Multiple distinct objects

    • -0
    • +830
    ./rosetta-multiple-distinct.html
    • -0
    • +50
    ./rosetta-multiple-distinct.tcl
  1. … 2 more files in changeset.
Adding another Rosetta example: Tree traversal

    • -0
    • +872
    ./rosetta-tree.html
  1. … 2 more files in changeset.
Added first additional Rosetta example

    • -0
    • +850
    ./rosetta-tokenizer.html
    • -0
    • +59
    ./rosetta-tokenizer.tcl
  1. … 2 more files in changeset.
- regenerate doc pages with asciidoc 8.6.9 - fix paths

    • -10
    • +88
    ./rosetta-constraint-genericity.html
  1. … 3 more files in changeset.
nx.tcl: pluralism reform part 2 - changed methods /cls/ info subclass -> /cls/ info subclasses /cls/ info superclass -> /cls/ info superclasses /cls/ mixin ... -> /cls/ mixins /cls/ filter ... -> /cls/ filters /cls/ object mixin ... -> /cls/ object mixins /cls/ object filter ... -> /cls/ object filters - changed configure parameters /cls/ configure -mixin -> /cls/ configure -mixins /cls/ configure -filter -> /cls/ configure -filters /obj/ configure -object-mixin -> /obj/ configure -object-mixins /obj/ configure -object-filter -> /obj/ configure -object-filters - added handling for calling relationslot with unknown sub method

  1. … 30 more files in changeset.
- use cget interface

Fixing an example script for changes in getter/setter reform

- renamed nsf::relation to nsf::relation::set and added nsf::relation::get in accordance with nsf::var::get

  1. … 17 more files in changeset.
traits: - define simple setter methods "requiredMethods" and "requiredVariables" to avoid to "set" these explicitly

  1. … 2 more files in changeset.
nx.tcl, xotcl2.tcl: - use value=* as names for interally called and forwarder-called accessor methods - disallow "assign" for nx::variableSlots

  1. … 11 more files in changeset.
nx.tcl: - add "set" as a method name for relation slots - implemented relation slot "mixin" and "object-mixin" via "slotassign" to disallow "/obj/ mixin /value/" and "/obj/ object mixin /value/" to use instead "/obj/ mixin set /value/" and "/obj/ object mixin set /value/" while keeping "configure" and "cget" working. This has the advantage that "/obj/ mixin set" does not try to replace the mixin chain by "set" - adapted regression test - TODO: check, if we need the explicit "slotassign"? isn't the presence of the slotObj sufficient? maybe "-forwardToSlot" in relationSlots? - TODO: demangle "slotassign" in "ObjectParameterSlot protected method getParameterOptions" and check interactions - TODO: to the same as -mixin and -object-mixin to -filter and -object-filter - TODO: clean up relation slot mixin variants - TODO: do we really like the fact that we have to write now "B mixin set M2" instead of "B mixin M2"? - TODO: should we disallow "B mixin" and enforce instead of "B mixin get" ? - TODO: we could as well allow "B mixin clear" instead of "B mixin set {}" - TODO: allow "set" for variable slots as well. Do we need "assign"?

  1. … 14 more files in changeset.
- extend bagel example slightly

- finalize dropping of setter methods for nx

  1. … 6 more files in changeset.
- added sample script doc/example-scripts/tk-geo.tcl

  1. … 1 more file in changeset.
- added example scripts rosetta-sudoku.{tcl,html} and tk-ludo.{tcl,html}

    • -0
    • +1099
    ./rosetta-sudoku.html
    • -0
    • +312
    ./rosetta-sudoku.tcl
    • -0
    • +1389
    ./tk-ludo.html
  1. … 2 more files in changeset.
- updated locomotive example to use nx::callback

- add needed "cget" call

- documentation update and regeneration of html docs

  1. … 3 more files in changeset.
- updated HTML renderings of examples

    • -109
    • +52
    ./rosetta-constraint-genericity.html
  1. … 1 more file in changeset.
nx::test: - change test cases to newer interface - don't use "namespace import nx::*" in test cases when not required

  1. … 32 more files in changeset.