Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: Source/core/css/CSSGrammar.y

Issue 217423011: Use %pure-parser in grammar files to make Bison 3 happy. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/xml/XPathGrammar.y » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 %{ 1 %{
2 2
3 /* 3 /*
4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved.
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2012 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012 Intel Corporation. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #define YYLTYPE_IS_TRIVIAL 1 53 #define YYLTYPE_IS_TRIVIAL 1
54 #define YYMAXDEPTH 10000 54 #define YYMAXDEPTH 10000
55 #define YYDEBUG 0 55 #define YYDEBUG 0
56 56
57 #if YYDEBUG > 0 57 #if YYDEBUG > 0
58 #define YYPRINT(File,Type,Value) if (isCSSTokenAString(Type)) YYFPRINTF(File, "% s", String((Value).string).utf8().data()) 58 #define YYPRINT(File,Type,Value) if (isCSSTokenAString(Type)) YYFPRINTF(File, "% s", String((Value).string).utf8().data())
59 #endif 59 #endif
60 60
61 %} 61 %}
62 62
63 %pure_parser 63 %pure-parser
64 64
65 %parse-param { BisonCSSParser* parser } 65 %parse-param { BisonCSSParser* parser }
66 %lex-param { BisonCSSParser* parser } 66 %lex-param { BisonCSSParser* parser }
67 67
68 %union { 68 %union {
69 bool boolean; 69 bool boolean;
70 char character; 70 char character;
71 int integer; 71 int integer;
72 double number; 72 double number;
73 CSSParserString string; 73 CSSParserString string;
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 ; 1852 ;
1853 1853
1854 rule_error_recovery: 1854 rule_error_recovery:
1855 /* empty */ 1855 /* empty */
1856 | rule_error_recovery error 1856 | rule_error_recovery error
1857 | rule_error_recovery invalid_square_brackets_block 1857 | rule_error_recovery invalid_square_brackets_block
1858 | rule_error_recovery invalid_parentheses_block 1858 | rule_error_recovery invalid_parentheses_block
1859 ; 1859 ;
1860 1860
1861 %% 1861 %%
OLDNEW
« no previous file with comments | « no previous file | Source/core/xml/XPathGrammar.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698