Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Updated Syntax

Pre-release
Pre-release
Compare
Choose a tag to compare
@jeffreyguenther jeffreyguenther released this 06 May 22:20
· 286 commits to master since this release

This release updates Shiro to the new Syntax.

Examples of the new syntax can be found in the example_code folder.

The changes can be summarized as:

  • Adds port type to port declaration (input, eval, output)
node Point begin
    input x Value
    input y Value
    eval update Point(x[0], y[0])
    output point Value(update[0])
end
  • Introduces new option keyword for creating subjunctive nodes. Ports and nodes can now be made subjuncts.
node EndPoints[P1] begin
    option Point -> P1 begin
        x(400)
        y(400)
    end

    option Point -> P2 begin
        x(100)
        y(400)
    end
end
  • this can be used to refer to a port