From f242c09d46bab9c4b2524a50a72ee275609fc267 Mon Sep 17 00:00:00 2001 From: parrt Date: Sat, 13 Mar 2010 13:04:18 -0800 Subject: [PATCH] made DOTGen nonrecursive; add DFA verification stuff [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6749] --- .../org/antlr/v4/tool/templates/dot/state.st | 2 +- .../antlr/v4/tool/templates/dot/stopstate.st | 2 +- .../org/antlr/v4/analysis/DFAVerifier.java | 142 ++++++- tool/src/org/antlr/v4/analysis/Resolver.java | 69 ++-- .../StackLimitedNFAToDFAConverter.java | 45 +- tool/src/org/antlr/v4/automata/DFA.java | 8 +- tool/src/org/antlr/v4/automata/DFAState.java | 2 +- tool/src/org/antlr/v4/automata/NFAState.java | 16 +- tool/src/org/antlr/v4/tool/DOTGenerator.java | 387 +++++++++++------- 9 files changed, 453 insertions(+), 220 deletions(-) diff --git a/tool/resources/org/antlr/v4/tool/templates/dot/state.st b/tool/resources/org/antlr/v4/tool/templates/dot/state.st index 31c59d145..b52c70b77 100644 --- a/tool/resources/org/antlr/v4/tool/templates/dot/state.st +++ b/tool/resources/org/antlr/v4/tool/templates/dot/state.st @@ -1,3 +1,3 @@ state(state, name) ::= << -node [fontsize=11, shape=box, fixedsize=falseshape=circle, fixedsize=true, width=.4]; +node [fontsize=11, label="