the segment A management source code is not compatible with the presence of segments AP and AC.
modified source as follow:
if (nextChar != 'A' ) {
// On n'a pas de A, c'est donc un entête de champ, on le traite comme
// du contenu standard et on change l'état de lecture
tokenList.add(createToken(HPRIMSParser.CONTENT,
Lexer.DEFAULT_TOKEN_CHANNEL, purgeContent()));
tokenList.add(createToken(HPRIMSParser.CR,
Lexer.DEFAULT_TOKEN_CHANNEL, new char[]{nextChar}));
tokenSourceStates.removeLast();
tokenSourceStates.add(TokenSourceState.START_LINE);
content.append(nextChar);
nbadded += 2;
} else {
// On a un A, il faut continuer à lire comme du contenu standard
readresult = inputReader.read();
nextChar = (char) readresult;
if (readresult == -1) {
tokenList.add(CommonToken.EOF_TOKEN);
nbadded++;
// FBATTAGLIA segment AP and AC they start for A but are not addendum
} else if(nextChar == 'P' || nextChar == 'C'){
tokenList.add(createToken(HPRIMSParser.CONTENT,
Lexer.DEFAULT_TOKEN_CHANNEL, purgeContent()));
tokenList.add(createToken(HPRIMSParser.CR,
Lexer.DEFAULT_TOKEN_CHANNEL, new char[]{'A',nextChar}));
tokenSourceStates.removeLast();
tokenSourceStates.add(TokenSourceState.START_LINE);
content.append('A');
content.append(nextChar);
nbadded += 2;
}
else {
if (nextChar != delimiters.getDelimiter1())
reportError(new HPRIMSRecognitionException("Suite de ligne A sans délimiteur",
inputReader, new char[]{nextChar}));
}
}
the segment A management source code is not compatible with the presence of segments AP and AC.
modified source as follow:
if (nextChar != 'A' ) {
// On n'a pas de A, c'est donc un entête de champ, on le traite comme
// du contenu standard et on change l'état de lecture
tokenList.add(createToken(HPRIMSParser.CONTENT,
Lexer.DEFAULT_TOKEN_CHANNEL, purgeContent()));
tokenList.add(createToken(HPRIMSParser.CR,
Lexer.DEFAULT_TOKEN_CHANNEL, new char[]{nextChar}));
tokenSourceStates.removeLast();
tokenSourceStates.add(TokenSourceState.START_LINE);
content.append(nextChar);
nbadded += 2;
} else {
// On a un A, il faut continuer à lire comme du contenu standard
readresult = inputReader.read();
nextChar = (char) readresult;
if (readresult == -1) {
tokenList.add(CommonToken.EOF_TOKEN);
nbadded++;
// FBATTAGLIA segment AP and AC they start for A but are not addendum
} else if(nextChar == 'P' || nextChar == 'C'){
tokenList.add(createToken(HPRIMSParser.CONTENT,
Lexer.DEFAULT_TOKEN_CHANNEL, purgeContent()));
tokenList.add(createToken(HPRIMSParser.CR,
Lexer.DEFAULT_TOKEN_CHANNEL, new char[]{'A',nextChar}));
tokenSourceStates.removeLast();
tokenSourceStates.add(TokenSourceState.START_LINE);
content.append('A');
content.append(nextChar);
nbadded += 2;
}
else {
if (nextChar != delimiters.getDelimiter1())
reportError(new HPRIMSRecognitionException("Suite de ligne A sans délimiteur",
inputReader, new char[]{nextChar}));
}
}