summaryrefslogtreecommitdiffstats
path: root/server/util_expr_scan.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Follow up to rr1810605 and r1811104.Yann Ylavic2017-10-041-260/+220
| | | | | | | Generated parser files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1811105 13f79535-47bb-0310-9956-ffa450edef68
* ap_expr: open string expressions to the <word>.Yann Ylavic2017-10-021-556/+752
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces the syntax "%{:<word>:}", borrowed from the <var>'s one, and which likewise can be embedded anywhere in a string expression (the same reserved character ':' gets reused in an unambiguous manner). This allows the two types of expressions (boolean and string) to now share fully the same language set, namely: strings, lists, vars, regexes, backrefs, functions with multiple or complex arguments, and especially combinations thereof. Most of them were reserved to boolean expressions only, while complex string constructions can also benefit to, well, strings. The <word> construct allows that (say the syntax "%{:<word>:}" looks like a temporary variable constructed in a string). Since string expressions may now have to deal with lists (arrays), they also need a way to produce/extract strings from list and vice versa. This can be done with the new "join" and "split" operators, while the new substitution regexes (like "s/<pattern>/<substitute>/<flags>") may be used to manipulate strings in place. All this of course available for both string and boolean expressions. Tests and doc updates upcoming.. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810605 13f79535-47bb-0310-9956-ffa450edef68
* Added some more log numbers to log statements thatRainer Jung2016-01-191-2/+3
| | | | | | | | | | had none. Those were not detected by the coccinelle script. Only a few hard cases are remaining now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725548 13f79535-47bb-0310-9956-ffa450edef68
* Update auto-generated codeStefan Fritsch2012-11-051-75/+90
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1405773 13f79535-47bb-0310-9956-ffa450edef68
* Revert... wtf did this come from??Jim Jagielski2012-03-071-27/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1297956 13f79535-47bb-0310-9956-ffa450edef68
* Fold on Jeff's DefaultRuntimeDir impl... docs on the wayJim Jagielski2012-03-071-42/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1297955 13f79535-47bb-0310-9956-ffa450edef68
* Update autogenerated code. Now generated with bison 2.5 instead of 2.4.1Stefan Fritsch2011-10-101-25/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1181231 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-25/+25
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* Update auto-generated codeStefan Fritsch2011-08-131-90/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1157363 13f79535-47bb-0310-9956-ffa450edef68
* Update auto-generated codeStefan Fritsch2011-07-021-73/+103
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142165 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_expr's typedef names:Stefan Fritsch2010-12-041-1/+1
| | | | | | | | | | | ap_expr -> ap_expr_t ap_expr_parse_ctx -> ap_expr_parse_ctx_t ap_expr_eval_ctx -> ap_expr_eval_ctx_t ap_expr_lookup_fn -> ap_expr_lookup_fn_t ap_expr_node_op -> ap_expr_node_op_e git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1042146 13f79535-47bb-0310-9956-ffa450edef68
* update flex/bison autogenerated codeStefan Fritsch2010-11-281-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039901 13f79535-47bb-0310-9956-ffa450edef68
* Remove some unused functions for which flex forgets to add prototypes, leadingStefan Fritsch2010-11-261-19/+0
| | | | | | | to compiler warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039543 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Windows build issuesStefan Fritsch2010-11-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1039204 13f79535-47bb-0310-9956-ffa450edef68
* ap_expr related fixes/enhancements:Stefan Fritsch2010-11-211-244/+276
| | | | | | | | | | | - implement regex backreferences and make them available for setting envvars in SetEnvIfExpr - implement nested function calls in %-syntax: %{func1:%{func2:arg}} - actually implement evaluation of concatenation operator (oops...) - Fix <If ... > treating an internal error as success git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1037504 13f79535-47bb-0310-9956-ffa450edef68
* Supress generation of unused yy_top_state function, to avoid a compilerStefan Fritsch2010-11-101-56/+48
| | | | | | | warning. Regenerate the scanner code with flex. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033594 13f79535-47bb-0310-9956-ffa450edef68
* More fixes for picky compilersStefan Fritsch2010-11-071-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032268 13f79535-47bb-0310-9956-ffa450edef68
* Replace ap_expr with a parser derived from mod_ssl's parser. Make mod_ssl useStefan Fritsch2010-11-061-0/+2628
the new parser. Rework ap_expr's public interface and provide hooks for modules to add variables and functions. The Netware and Windows build files still need to be adjusted git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032073 13f79535-47bb-0310-9956-ffa450edef68