OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> |
3 * Copyright (C) 2006 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 LocationPath | 387 LocationPath |
388 { | 388 { |
389 $$ = $1; | 389 $$ = $1; |
390 } | 390 } |
391 | | 391 | |
392 FilterExpr | 392 FilterExpr |
393 | | 393 | |
394 FilterExpr '/' RelativeLocationPath | 394 FilterExpr '/' RelativeLocationPath |
395 { | 395 { |
396 $3->setAbsolute(true); | 396 $3->setAbsolute(true); |
397 $$ = new Path($1, $3); | 397 $$ = new blink::XPath::Path($1, $3); |
398 } | 398 } |
399 | | 399 | |
400 FilterExpr DescendantOrSelf RelativeLocationPath | 400 FilterExpr DescendantOrSelf RelativeLocationPath |
401 { | 401 { |
402 $3->insertFirstStep($2); | 402 $3->insertFirstStep($2); |
403 $3->setAbsolute(true); | 403 $3->setAbsolute(true); |
404 $$ = new Path($1, $3); | 404 $$ = new blink::XPath::Path($1, $3); |
405 } | 405 } |
406 ; | 406 ; |
407 | 407 |
408 FilterExpr: | 408 FilterExpr: |
409 PrimaryExpr | 409 PrimaryExpr |
410 | | 410 | |
411 PrimaryExpr PredicateList | 411 PrimaryExpr PredicateList |
412 { | 412 { |
413 $$ = new Filter($1, *$2); | 413 $$ = new blink::XPath::Filter($1, *$2); |
414 } | 414 } |
415 ; | 415 ; |
416 | 416 |
417 OrExpr: | 417 OrExpr: |
418 AndExpr | 418 AndExpr |
419 | | 419 | |
420 OrExpr OR AndExpr | 420 OrExpr OR AndExpr |
421 { | 421 { |
422 $$ = new LogicalOp(LogicalOp::OP_Or, $1, $3); | 422 $$ = new LogicalOp(LogicalOp::OP_Or, $1, $3); |
423 } | 423 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 UnionExpr | 477 UnionExpr |
478 | | 478 | |
479 MINUS UnaryExpr | 479 MINUS UnaryExpr |
480 { | 480 { |
481 $$ = new Negative; | 481 $$ = new Negative; |
482 $$->addSubExpression($2); | 482 $$->addSubExpression($2); |
483 } | 483 } |
484 ; | 484 ; |
485 | 485 |
486 %% | 486 %% |
OLD | NEW |