[Oisf-wg-configuration_language] YAML issues. (Jason Ish)
Matt C
mbc8434 at gmail.com
Sun Aug 23 16:57:44 UTC 2009
Hi. Using YAML for variable expansion you could do:
&HOME_NET 172.16.1.0/24
And then *HOME_NET to reference it.
Of course, YAML itself has no understanding of "!$HOME_NET" as that is not a
simple expansion.
Even though I have been the one advocating YAML from the start, I think that
if you want to maintain strict compatibility with Snort you are better off
just just building a custom parser.
I would still advocate building a parser in a language like perl or python,
as string handling is far easier and less prone to errors. If you didn't
want to figure out a way to embed an interperter though, you could use
something like BISON to build a parser for a custom grammar.
Matt C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-wg-configuration_language/attachments/20090823/9057e2b1/attachment-0002.html>
More information about the Oisf-wg-configuration_language
mailing list