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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #define YYENABLE_NLS 0 | 44 #define YYENABLE_NLS 0 |
45 #define YYLTYPE_IS_TRIVIAL 1 | 45 #define YYLTYPE_IS_TRIVIAL 1 |
46 #define YYDEBUG 0 | 46 #define YYDEBUG 0 |
47 #define YYMAXDEPTH 10000 | 47 #define YYMAXDEPTH 10000 |
48 | 48 |
49 using namespace WebCore; | 49 using namespace WebCore; |
50 using namespace XPath; | 50 using namespace XPath; |
51 | 51 |
52 %} | 52 %} |
53 | 53 |
54 %pure_parser | 54 %pure-parser |
55 %parse-param { WebCore::XPath::Parser* parser } | 55 %parse-param { WebCore::XPath::Parser* parser } |
56 | 56 |
57 %union | 57 %union |
58 { | 58 { |
59 Step::Axis axis; | 59 Step::Axis axis; |
60 Step::NodeTest* nodeTest; | 60 Step::NodeTest* nodeTest; |
61 NumericOp::Opcode numop; | 61 NumericOp::Opcode numop; |
62 EqTestOp::Opcode eqop; | 62 EqTestOp::Opcode eqop; |
63 String* str; | 63 String* str; |
64 Expression* expr; | 64 Expression* expr; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 MINUS UnaryExpr | 545 MINUS UnaryExpr |
546 { | 546 { |
547 $$ = new Negative; | 547 $$ = new Negative; |
548 $$->addSubExpression(adoptPtr($2)); | 548 $$->addSubExpression(adoptPtr($2)); |
549 parser->unregisterParseNode($2); | 549 parser->unregisterParseNode($2); |
550 parser->registerParseNode($$); | 550 parser->registerParseNode($$); |
551 } | 551 } |
552 ; | 552 ; |
553 | 553 |
554 %% | 554 %% |
OLD | NEW |