Merge: Clean generated parser
authorJean Privat <jean@pryen.org>
Thu, 10 Apr 2014 15:13:50 +0000 (11:13 -0400)
committerJean Privat <jean@pryen.org>
Thu, 10 Apr 2014 15:13:50 +0000 (11:13 -0400)
commit1902c6a52da225d486c2fc0a4c1826cf1bf8aa66
tree8cc110c055c794b4b3dbdd3bc34f324bd52f5b7c
parent46b8730c10b6b4e67b72abf93c6d6bee632e43d2
parent7d813ac5188ae9f9c3ae1eabd2836946ff412069
Merge: Clean generated parser

This series reduce the size of the generated parser.

* First, factorize generated clones (the first commit)
* Second, reduce inlining in the grammar (the other commits)

This was a tidy process because each slight modification in the grammar yields to numerous conflicts often
difficult to understand. But the results worth the pain:

Time of `nitg nitg.nit`
before: 0m10.784s
after: 0m7.956s
gain: 26%

Number of subclasses of `ReduceAction`
before: 780
after: 376
gain: 52%

Pull-Request: #388
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>