- 22 Nov, 2012 6 commits
-
-
Michal 'vorner' Vaner authored
We never have a chain of the transitions. We only do start and zero or one handle on the returned one. Simplify handle to return void, not NULL. Besides simplification, it allows testing without fake states (TBD) - we had no real state to test the multiple transitions.
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
Conflicts (from cherry-pick): src/lib/dns/tests/master_lexer_unittest.cc
-
Michal 'vorner' Vaner authored
The copy is shallow anyway, so it wouldn't survive for long.
-
Michal 'vorner' Vaner authored
If there's an error that manifests at the end of a file, like an unbalanced parenthesis or a quoted string that does not end, report the error. But also, return EOF as the next token, not an exception.
-
Michal 'vorner' Vaner authored
It was deemed unneeded and is removed therefore, to make the code smaller.
-
- 20 Nov, 2012 1 commit
-
-
JINMEI Tatuya authored
-
- 19 Nov, 2012 20 commits
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
A scoped pointer, in this case. It probably isn't safer, as the ->handle couldn't throw in this case, but just for the habit.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
It was not safe, because it may refer to some data elsewhere. Luckily, it seems it is not needed anyway, since the only way that a token can get out of the lexer is through the getNextToken, which would get a new one, and through a testing method not meant for public use.
-
Michal 'vorner' Vaner authored
Move the ReadError exception into the MasterLexer. That way, it is in public namespace, so people can expect to see it.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
This is a debug test. It checks the state machine produced a token. There are no tests for this test, since such condition would be a programmer error, not something expected.
-
Michal 'vorner' Vaner authored
No error handling, no special cases, no returning.
-
Michal 'vorner' Vaner authored
No fancy stuff yet, like ungetting tokens, changes of parentheses count, etc. Just the basic stuff.
-
Michal 'vorner' Vaner authored
It is for tests, but in the main code for technical reasons.
-
Michal 'vorner' Vaner authored
With doxygen description of what it should do and empty method bodies, so the tests in following commits will at least compile.
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-
- 18 Nov, 2012 1 commit
-
-
Mukund Sivaraman authored
-
- 16 Nov, 2012 4 commits
-
-
Stephen Morris authored
-
Stephen Morris authored
-
Stephen Morris authored
Also fix some issues from the review.
-
Stephen Morris authored
-
- 15 Nov, 2012 8 commits
-
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Jeremy C. Reed authored
note I renumbered existing entry.
-
Jeremy C. Reed authored
-
JINMEI Tatuya authored
I expect we'll need the string object version of token pretty often for rrtype and TTL, and this version will help make it a bit more efficient.
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-