From: Matt S Trout Date: Mon, 30 Sep 2019 17:30:10 +0000 (+0000) Subject: add prefix unop example, and example for new keyword node type X-Git-Tag: v2.000000~3^2~89 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f41558867ed107ae08a241de7f622e025da0b6ae;hp=336bff329cb76b5338e1c40524a2dc025837ba94;p=dbsrgits%2FSQL-Abstract.git add prefix unop example, and example for new keyword node type --- diff --git a/lib/SQL/Abstract/Reference.pm b/lib/SQL/Abstract/Reference.pm index 1f9dd33..adb96df 100644 --- a/lib/SQL/Abstract/Reference.pm +++ b/lib/SQL/Abstract/Reference.pm @@ -146,7 +146,17 @@ Standard binop: bomb.status = ? [ 'unexploded' ] -Not: + +Prefix unop: + + # expr + { -op => [ '-', { -ident => 'foo' } ] } + + # query + - foo + [] + +Not as special case parenthesised unop: # expr { -op => [ 'not', { -ident => 'explosive' } ] } @@ -229,6 +239,15 @@ Comma (use -row for parens): VALUES (1, 2), (3, 4) [] +=head2 keyword + + # expr + { -keyword => 'insert_into' } + + # query + INSERT INTO + [] + =head2 statement types AQT node types are also provided for C