benches/strings: add .gitignore and `make clean`
[nit.git] / lib / saxophonit / lexer.nit
index 07277ef..f95e5e3 100644 (file)
@@ -25,7 +25,7 @@ class XophonLexer
        var reader_model: XophonReaderModel
 
        # The input to read from.
-       var input: IStream is writable
+       var input: Reader is writable
 
        # Alias to `reader_model.locator`.
        private var locator: SAXLocatorImpl is noinit
@@ -350,7 +350,7 @@ class XophonLexer
        # match `expected`.
        fun expect_string(expected: String, context: String): Bool do
                var chars = expected.chars
-               var i: Int = 0
+               var i = 0
 
                while i < chars.length do
                        if not accept(chars[i]) then