Skip to content

Commit

Permalink
Document phases
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Freeman committed Oct 19, 2012
1 parent 75384d9 commit 2c970cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/phases.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
digraph phases {
rankdir="LR"
parse -> resolve [label="Statement[Option[String]]"]
resolve -> type [label="Statement[Table]"]
type -> analyze [label="TypedStatement"]
analyze -> codegen [label="TypedStatement"]
codegen -> embed [label="Scala AST"]
}
Binary file added docs/phases.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/scala/typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,6 @@ class Typer(schema: Schema, stmt: Ast.Statement[Table]) extends Ast.Resolved {
case "java.sql.Time" => typeOf[java.sql.Time]
case "byte[]" => typeOf[java.sql.Blob]
case "byte" => typeOf[Byte]
case x => sys.error("Unknown type " + x) // FIXME improve error handling
case x => sys.error("Unknown type " + x)
}
}

0 comments on commit 2c970cd

Please sign in to comment.