diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-20 16:22:22 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-20 16:22:22 +0000 |
commit | 6d4b5578115c290fe17db213ae17e0fff43a37af (patch) | |
tree | 18e8f57bc1c49143710edaf62a0aa2ab87c5df61 /README.ja.md | |
parent | 43e320ba1b08c32286f0aa1972528c5f25b4a483 (diff) | |
download | ruby-6d4b5578115c290fe17db213ae17e0fff43a37af.tar.gz |
Store token first column number on RNode
* node.c (A_NODE_HEADER): Print column number.
* node.h (nd_column, nd_set_column): Define getter/setter
macros for column number of RNode.
* parse.y: Set first column number of tokens.
Notes:
* Use `@n` to get the location of token in parse.y.
* When we use `@n`, arguments of yyerror and yylex are
changed.
* Initialize column of nodes with -1 to make it easy
to detect nodes which we forget to set a column number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.ja.md')
0 files changed, 0 insertions, 0 deletions