Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • shchen/cs320
  • raveendr/cs320
  • mwojnaro/cs320
3 results
Show changes
Showing
with 95 additions and 0 deletions
IntLitToken(1)(1:2)
IntLitToken(2)(2:5)
EOFToken()(3:1)
object<=id_1+++_1{id}()class<==>==<%
/* This comment is closed twice,
which should be an error:
*/*/
\ No newline at end of file
1
// This is a comment
2 /* This is also a comment */
3 /* Still * /* comment */
4 /* Multiline
/*
*
Comment
*/
5 /***/
/* abc **/ 6 /* def */
7
//
{ } ( ) , : . = => _
app boolean
caSe Class df elze Error Extends False iff int module string
True unit vals
this_is_id this_IS_id2 st1ll1s_1d
St1ll1s_1d
123 012345
6789+12345
abstract Boolean
case class def else error extends false if Int match object String
true Unit val end
; + - * / % < <= && || == ++ !
"This is a string"
"Another with ^^ | # invalid chars"
"No escape \n characters \t"
" // No comments /* either "
1 // Tab indented
2 // Space indented
object Args
abstract class Foo
case class Bar(i: Int(32), j: Int(32)) extends Foo
def foo(i: Int(32)): Foo = { Bar(i, i, i) }
end Args
object Args
def foo(i: Int(32)): Int(32) = { foo(1, 2) }
end Args
object Locals
abstract class IP
case class IntPair(i: Int(32), j: Int(32)) extends IP
def foo(): Int(32) = {
IntPair(1,2) match {
case IntPair(i) => 42
}
}
end Locals
object DefNames
abstract class Foo
case class Foo() extends Foo
end DefNames
object DefNames
abstract class Foo
case class Bar() extends Foo
defFoo(): Int(32) = { 42 }
end DefNames
object Locals
deffoo(): Int(32) = {
val i: Int(32) = 42;
val i: Boolean = true;
43
}
end Locals
object Locals
def foo(): Int(32) = {
val i: Int(32) = 42;
i match {
case i => 0
}
}
end Locals
object Locals
abstract class IP
case class IntPair(i: Int(32), j: Int(32)) extends IP
def foo(): Int(32) = {
IntPair(1,2) match {
case IntPair(i, i) => 42
}
}
end Locals
object Module
end Module