What is the best way to add a binary coded decimal (BCD) number to a grammar?

0 votes
asked Nov 27 in Grammars by dominickpastore (150 points)
What would be the best way to add a binary coded decimal number to a grammar? The best way I can come up with is to create a 4-bit number that's limited to a max value of 9 and repeat it. Is there a better way? Would I have to resort to scripting if I want the multi-digit number to appear as one element?

Please log in or register to answer this question.

...