public void TestQuotedStringWithSpaces() { Lexer l = new Lexer("\" abc def\""); Token t = l.next(Lexer.Mode.DEFAULT); Assert.IsTrue(t.type == Token.Type.QUOTED_STRING); Assert.IsTrue(t.repr.CompareTo("\" abc def\"") == 0); }
public void TestDotAtom() { Lexer p = new Lexer("abc.def"); Token t = p.next(Lexer.Mode.DEFAULT); Assert.IsTrue(t.type == Token.Type.DOT_ATOM); Assert.IsTrue(t.repr.CompareTo("abc.def") == 0); }
public Parser(String s) { l = new Lexer(s); }
public Parser(StreamReader sr) { l = new Lexer(sr); }