diff options
author | Nathan Eloe <powerofazure@gmail.com> | 2010-08-02 15:36:53 -0500 |
---|---|---|
committer | Nathan Eloe <powerofazure@gmail.com> | 2010-08-04 13:03:38 -0500 |
commit | 9252485a002d34f24e334e57934c17b340415148 (patch) | |
tree | a42933f8cdf7fac05df26cbe457002a40e3a03c0 /bashast/gunit/pipeline.gunit | |
parent | Enable expression grouping (diff) | |
download | libbash-9252485a002d34f24e334e57934c17b340415148.tar.gz libbash-9252485a002d34f24e334e57934c17b340415148.tar.bz2 libbash-9252485a002d34f24e334e57934c17b340415148.zip |
DOUBLE/SINGLE_QUOTED_STRING virtual tokens
Adds a virtual token to differentiate between quoted and non-quoted strings.
This will be useful for programs like repoman that will use the tree directly.
examples:
"abc" -> (STRING (DOUBLE_QUOTED_STRING abc))
'abc'123 -> (STRING (SINGLE_QUOTED_STRING abc) 123)
Diffstat (limited to 'bashast/gunit/pipeline.gunit')
-rw-r--r-- | bashast/gunit/pipeline.gunit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bashast/gunit/pipeline.gunit b/bashast/gunit/pipeline.gunit index 7c264b5..ac41d33 100644 --- a/bashast/gunit/pipeline.gunit +++ b/bashast/gunit/pipeline.gunit @@ -8,4 +8,4 @@ pipeline: "time -p cat file |grep search >> log" -> (| (COMMAND (STRING cat) (STRING file) (time -p)) (COMMAND (STRING grep) (STRING search) (REDIR >> (STRING log)))) "if time cat; then echo \"three\" -fi" -> (if (LIST (COMMAND (STRING cat) time)) (LIST (COMMAND (STRING echo) (STRING three)))) +fi" -> (if (LIST (COMMAND (STRING cat) time)) (LIST (COMMAND (STRING echo) (STRING (DOUBLE_QUOTED_STRING three))))) |