nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dae628
)
nitcc: a empty automaton has at least a start state, even if non-terminal
author
Jean Privat
<jean@pryen.org>
Fri, 27 Oct 2017 13:10:27 +0000
(09:10 -0400)
committer
Jean Privat
<jean@pryen.org>
Fri, 27 Oct 2017 13:10:27 +0000
(09:10 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
contrib/nitcc/src/autom.nit
patch
|
blob
|
history
diff --git
a/contrib/nitcc/src/autom.nit
b/contrib/nitcc/src/autom.nit
index
3248e17
..
2a97bd3
100644
(file)
--- a/
contrib/nitcc/src/autom.nit
+++ b/
contrib/nitcc/src/autom.nit
@@
-367,6
+367,7
@@
class Automaton
# Keep only the good stuff
states.clear
states.add_all(goods)
+ states.add(start)
end
# Generate a minimal DFA