| org.netbeans.modules.lexer.demo.DemoTokenUpdater org.netbeans.modules.lexer.demo.LexerRandomTest
LexerRandomTest | public class LexerRandomTest extends DemoTokenUpdater (Code) | | Random test that helps to test lexer correctness.
Document is created and updated by subsequent modifications.
After each modification the token updater updates token elements
of the document and compares them to another token list
created by batch lexing of the entire document.
If the two token lists do not match it means that the lexer
must be fixed otherwise it would not function well
in the incremental setting.
createLexer() can be overriden if necessary.
author: Miloslav Metelka version: 1.00 |
Constructor Summary | |
public | LexerRandomTest(LexerTestDescription td, boolean maintainLookbacks) |
Method Summary | |
public static void | main(String[] args) | public void | test() |
LexerRandomTest | public LexerRandomTest(LexerTestDescription td, boolean maintainLookbacks)(Code) | | |
|
|