Add Match#source as a shortcut for input.source.
This method allows locating the original parsed source during the production of semantic values. It is roughly a shortcut for `input.source` but is robust to situations where matches would be created with strings (such as in the tests).
|@@ -20,6 +20,15 @@ def test_match_inequality|
|assert_equal(false, match2 == match1)|
|+ def test_source|
|+ match1 = Match.new('abcdef')|
|+ assert_equal 'abcdef', match1.source|
|+ path = Struct.new(:to_path).new(__FILE__)|
|+ match2 = Match.new(Input.new(path))|
|+ assert_equal path, match2.source|
|match1 = Match.new('abcdef')|
|assert_equal 'abcdef', match1.string|