# HG changeset patch # User Steve Losh # Date 1509757965 14400 # Node ID 54ebe659726fac2ac68b847f89be251e63c37841 # Parent efd3010b387b53d9f4ed712570464a701f568e9a chancery: Update site. diff -r efd3010b387b -r 54ebe659726f chancery/reference/index.html --- a/chancery/reference/index.html Fri Nov 03 21:00:06 2017 -0400 +++ b/chancery/reference/index.html Fri Nov 03 21:12:45 2017 -0400 @@ -30,6 +30,8 @@
  • DEFINE-STRING (macro)
  • GENERATE (macro)
  • GENERATE-STRING (macro)
  • +
  • INVOKE-GENERATE (function)
  • +
  • INVOKE-GENERATE-STRING (function)
  • POS (function)
  • S (function)
  • @@ -192,6 +194,44 @@ +

    INVOKE-GENERATE (function)

    +
    (INVOKE-GENERATE EXPRESSION)
    +
    + + +

    Generate a single Chancery expression.

    +

    THIS FUNCTION IS EXPERIMENTAL AND SUBJECT TO CHANGE IN THE FUTURE.

    +

    Because this is a function, not a macro, you'll need to do the quoting + yourself:

    +
    (define-rule x 1 2 3)
    +
    +(generate (x x x))
    +; => (1 3 3)
    +
    +(invoke-generate '(x x x))
    +; => (2 1 2)
    +
    + + +

    INVOKE-GENERATE-STRING (function)

    +
    (INVOKE-GENERATE-STRING EXPRESSION)
    +
    + + +

    Generate and stringify a single Chancery expression.

    +

    THIS FUNCTION IS EXPERIMENTAL AND SUBJECT TO CHANGE IN THE FUTURE.

    +

    Because this is a function, not a macro, you'll need to do the quoting + yourself:

    +
    (define-string x 1 2 3)
    +
    +(generate-string (x x x))
    +; => "1 3 3"
    +
    +(invoke-generate-string '(x x x))
    +; => "2 1 2"
    +
    + +

    POS (function)

    (POS STRING)