Commit Graph

7 Commits

Author SHA1 Message Date
parrt 007a445be4 factor antlr() out of target test files into single spot 2016-11-22 11:58:23 -08:00
hanjoes e0b326677b Migrating the current Swift tests to the new testing framework. 2016-11-19 18:30:48 -08:00
hanjoes 49d9a39a79 in the middle of transition. 2016-11-19 18:30:48 -08:00
Ewan Mellor cf1487feb4 Replace init with init_ in DelegatorRuleOverridesLookaheadInDelegate.
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).
2016-11-19 18:30:48 -08:00
Ewan Mellor 5b37b3e236 Add OptionalValue declarations to each of the non-Swift targets, so that
this can be used in the test templates.

It is a no-op for every target other than Swift.

This pairs with cset 8251422b.
2016-11-19 18:30:48 -08:00
Ewan Mellor dbe832766d Wrap some values with <OptionalValue> declarations.
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.
2016-11-19 18:30:48 -08:00
parrt 08e9776a4a shift template-based runtime test to legacy, new mechanism uses annotation to get multi-line strings into java. all tests pass minus about 15 in C# 2016-11-15 11:08:19 -08:00