Pankaj Jangid I write code.

CFG to parse Roman numerals

Any hint on how to write context free grammar for roman numerals. I know that

I - 1
V - 5
X - 10
L - 50
C - 100
D - 500
M - 1000

are the letters used in roman numerals. More over there is enough information about roman numerals here