[ruby-cvs:68871] mame:r61690 (trunk): parse.y: Make consistent with the terms about code ranges and locations

mame at ruby-lang.org mame at ruby-lang.org
Mon Jan 8 21:56:58 JST 2018


mame	2018-01-08 21:56:58 +0900 (Mon, 08 Jan 2018)

  New Revision: 61690

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61690

  Log:
    parse.y: Make consistent with the terms about code ranges and locations
    
    "loc" was ambiguous; it might refer both a location and a code range.
    This change uses "loc" for a location, and "crange" or "cr" for a code
    range.
    
    A location (abbr. loc) is a point in a program and consists of line
    number and column number.  A code range (abbr. crange and cr) is a range
    within a program and consists of a pair of locations which is the first
    and the last.

  Modified files:
    trunk/iseq.c
    trunk/node.c
    trunk/node.h
    trunk/parse.y


More information about the ruby-cvs mailing list