Skip to content

Conversation

dckc
Copy link
Member

@dckc dckc commented Mar 9, 2019

includes deSubGraphKit etc. ported from E-on-Java

fixes #203

example from uneval.updoc:

    def x := [1, x, 3]
    test(s(x), "[1, <**CYCLE**>, 3]")

$ monte eval fun/uneval.mt >cycle.msg

$ capnp convert binary:text capn/montevalue.capnp DataExpr <cycle.msg 
( defRec = (
    promIndex = 0,
    rValue = (
      call = (
        receiver = (noun = "_makeList"),
        message = (
          verb = "run",
          args = [
            ( defExpr = (
                index = 2,
                rValue = (
                  literal = (int = (int32 = 1)) ) ) ),
            (ibid = 0),
            ( defExpr = (
                index = 4,
                rValue = (
                  literal = (int = (int32 = 3)) ) ) ) ],
          namedArgs = [] ) ) ) ) )

recognize() is TODO

dckc and others added 30 commits September 2, 2017 22:56
  - def -> object
  - comment out DEBuilderOf module decl
  - :[g1, g2] -> :Pair[g1, g2]
  - :generic(g) -> :generic[g]
  - :g[] -> :List[g]
  - :(g1 | g2) -> :Any[g1, g2]
  - <scheme:rest> -> scheme_uriGetter("rest")
  - for pat in expr -> for pat in (expr)
mute Single Method Object warnings too
  - FinalPattern takes a NounExpr (for quasiquoting)
  - FlexSet.addElement -> include
  - CallExpr -> MethodCallExpr (with named args)
  - [].diverge().put(last, x) -> [].diverge().push(x)
Copy link

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

encode any Monte value (object graph) as capn message

2 participants