Fixed number format in ANTLR
Posted
by sarav
on Stack Overflow
See other posts from Stack Overflow
or by sarav
Published on 2010-04-21T08:44:59Z
Indexed on
2010/04/21
8:53 UTC
Read the original article
Hit count: 434
How to specify a fixed digit number in antlr grammar?
I want to parse a line which contains fields of fixed number of characters. Each field is a number.
0034|9056|4567|0987|-2340| +345|1000
The above line is a sample line. | indicates field boundaries.
The fields can include blank characters +/-
© Stack Overflow or respective owner