Hi, Iīm working with an application that read some plain text configuration files like this:
(event "LinkUp " (match "" (property_1 "" (option_1 "192.168.0.1") ) (property_2 "" (option_2 "6") ) (property_3 "" (option_1 "") (value "1234") ) ) )
The main issue, is when there are syntax error on this kind of files. I mean if there are missing open parenthesis, bracket or quotes, or if the tags has the wrong name (application is case sensitive), and there are some rules inside the configuration file like:
property_1 can be an empty value "" or include the option_1 with a value
property_2: can be a number 1,2,3,4,5,6,7
property_3: has 3 options: an empty value "", a fix value inside the double quotes "1", or use the option_1 tag
I have a basic experience with Perl, I used in the past some CPAN modules, but honestly I donīt know how can I write a syntax checker, do you know if a CPAN module can help me or can you give me please some ideas? Thanks in advance
In reply to Make a Syntax checker by dalbaranster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |