From 43968e90bc608d4d6369436f33915eedd5fc1af0 Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Fri, 27 May 2016 16:12:25 +0200 Subject: [PATCH] Keep no space in the template for the dead state transitions --- templates/c++/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/c++/lexer.cpp b/templates/c++/lexer.cpp index 1f281d0..4e9d5f6 100644 --- a/templates/c++/lexer.cpp +++ b/templates/c++/lexer.cpp @@ -10,7 +10,7 @@ namespace { //The automaton data unsigned char TRANS_IDX[256] = { {{#trans_idx}}{{trans}}, {{/trans_idx}} }; - State TABLE[{{num_states}}][{{num_transitions_per_state}}] = { {{#table}} + State TABLE[{{num_states}} - 1][{{num_transitions_per_state}}] = { {{#table}} { {{#row}} {{state}}, {{/row}} }, {{/table}} };