rfc:improved-parser-error-message
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:improved-parser-error-message [2011/05/16 12:13] – created felipe | rfc:improved-parser-error-message [2011/08/06 19:28] – [Request for Comments: Improved parser error message] stas | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2011-05-16 | * Date: 2011-05-16 | ||
* Author: Felipe Pena < | * Author: Felipe Pena < | ||
- | * Status: | + | * Status: |
+ | * Discussion: [[http:// | ||
Line 9: | Line 10: | ||
The purpose of this RFC is to propose a naming of our tokens to have an crypto-less parser error messages. This is simply achieved by using an old Bison feature. | The purpose of this RFC is to propose a naming of our tokens to have an crypto-less parser error messages. This is simply achieved by using an old Bison feature. | ||
+ | |||
+ | ==== BC ==== | ||
+ | |||
+ | There is no BC break. The token_*() functions aren't affected by the patch. | ||
+ | |||
+ | < | ||
+ | $ sapi/ | ||
+ | string(6) " | ||
+ | </ | ||
==== Examples ==== | ==== Examples ==== | ||
+ | |||
+ | < | ||
+ | $ sapi/ | ||
+ | Patched: | ||
+ | Parse error: syntax error, unexpected ' | ||
+ | |||
+ | Current: | ||
+ | Parse error: syntax error, unexpected T_STRING, expecting ' | ||
+ | </ | ||
< | < | ||
$ sapi/ | $ sapi/ | ||
Patched: | Patched: | ||
- | Parse error: syntax error, unexpected | + | Parse error: syntax error, unexpected |
Current: | Current: | ||
Line 24: | Line 43: | ||
$ sapi/ | $ sapi/ | ||
Patched: | Patched: | ||
- | Parse error: syntax error, unexpected :: in Command line code on line 1 | + | Parse error: syntax error, unexpected |
+ | nexpected '::' | ||
Current: | Current: | ||
Line 33: | Line 53: | ||
$ sapi/ | $ sapi/ | ||
Patched: | Patched: | ||
- | Parse error: syntax error, unexpected <<= in Command line code on line 1 | + | Parse error: syntax error, unexpected |
Current: | Current: | ||
Line 39: | Line 59: | ||
</ | </ | ||
+ | < | ||
+ | $ sapi/ | ||
+ | Patched: | ||
+ | Parse error: syntax error, unexpected end of file, expecting identifier (T_STRING) in Command line code on line 1 | ||
+ | |||
+ | Current: | ||
+ | Parse error: syntax error, unexpected $end, expecting T_STRING in Command line code on line 1 | ||
+ | </ | ||
===== Patch ===== | ===== Patch ===== | ||
* http:// | * http:// | ||
rfc/improved-parser-error-message.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1