Relative Content

Tag Archive for pythonpyparsing

pyparsing – back to basics

In attempting to put together a very simple example to illustrate an issue I’m having with pyparsing, I have found that I can’t get my simple example to work – this example is barely more complex than Hello, World!

pyparsing transform_string with negative lookahead

I’m trying to implement simple shell-style string variable interpolation with $varname syntax, using pyparsing. For example, if I have a variable foo with value "bar", then transform "x $foo x" to "x bar x".