Skip to content

Commit

Permalink
Add a couple more examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfinster committed Jun 24, 2015
1 parent 87c7d57 commit 8410aea
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions examples/adjoints-separate.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/universal.xml

Large diffs are not rendered by default.

Expand Up @@ -171,5 +171,6 @@ class FrameworkSVGPanel(labelEngine : WebEngine, val complex : SimpleFramework,
var baseCell : FrameworkSVGCell = newCell(complex.baseCells(baseIndex))

refreshPanelData

}

22 changes: 10 additions & 12 deletions orchard-lib/src/main/scala/orchard/core/editor/Workspace.scala
Expand Up @@ -178,16 +178,12 @@ trait Workspace extends CheckableEnvironment with HasEnvironment {
} {
if (selectedCell.isUnicityFillable) {

// editor.withFillerIdentifier(
// (fillerString => {
// IdentParser(fillerString) match {
// case Success(fillerIdent, _) => {

// // TODO : Check identifier is valid

editor.withFillerIdentifier(
(fillerString => {
IdentParser(fillerString) match {
case Success(fillerIdent, _) => {
// try {
// val contExpr = Contraction(selectedCell.neutralNCell, ??? /* fillerIdent */)

// sheet.deselectAll
// val newIdx = context.extendWith(contExpr)
// selectedCell.item = Neutral(newIdx)
Expand All @@ -196,11 +192,13 @@ trait Workspace extends CheckableEnvironment with HasEnvironment {
// case e : IllegalArgumentException => println("Duplicate identifier.")
// }
// }
// case _ : NoSuccess => println("Filler parse failed.")
// }
// }))

???

}
case _ : NoSuccess => println("Filler parse failed.")
}
})
)

} else if (selectedCell.isExposedNook) {

Expand Down

0 comments on commit 8410aea

Please sign in to comment.