init is the name of the instance initializer function in Swift, so generating
a grammar with that name causes problems, since it is generated into
function names on the parser.
I thought that renaming this would be a problem for other targets, but it
doesn't look like it, and actually the convention of using type_ rather than
type is already in use in this file. Match this by adopting init_ as the
name, and regenerate the tests to match.
This was initially handled in https://github.com/janyou/ANTLR-Swift-Target
(using the name initIt instead of init).
I don't know what this is for.
I also presume that this requires corresponding changes in the other targets
that aren't there yet (per the comment at the bottom). Just committing this
for now.
This comes from https://github.com/janyou/ANTLR-Swift-Target and is
marked Copyright (c) 2016 janyou on top of the BSD license and Copyrights
for Terence Parr and Sam Harwell derived from the original ANTLR source.