Hello Sir,
I am using sableCC for defining grammar to validate command line inputs (cli). Please suggest any work around solution.
I am facing some problem , please suggest something.
My Helper contains
ascii_alphabets = ['A' .. 'Z'] | ['a' .. 'z'] ;
digit = ['0' .. '9'];
inputalpha = (ascii_alphabets | digit | '_' )* ;
input_blk_devname= (inputalpha | '/' )*;
Tokens
blockdevice = input_blk_devname;
Production was defined to accept blockdevice name, but it is not validating grammar correctly it accept
a) /dev/sda/ accpt
b) sda fails
I don't able to figure it out. It is taking '|' as and their.
Help me over it.
Thanks
Yogesh