I tracked down an older commit from December 2015 when they were introduced:

3971196a4478853e1fd443e21e011ee1b8ea14c8

Alex, it looks like some changes that you made. Can you take a look?

When I initially ran the Ant build, I didn't see any warnings. In order to
get the Ant build to reproduce the warnings consistently, I needed to make
two local changes to compiler/build.xml:

1. In the antlr2 macrodef, I added <delete dir="@{output}"/> before the
<mkdir/> element

2. In the set.as.parser.uptodate target, I commented out the <uptodate/>
element.

I feel like we should make these changes permanent so that any warnings
always show up.

- Josh

On Tue, Nov 1, 2016 at 1:20 AM, Christofer Dutz <christofer.d...@c-ware.de>
wrote:

> Hi,
>
> I just noticed that I am getting warnings, that I hadn’t been getting in
> the past when building the FlexJS compiler:
>
> ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3164:9: warning:nondeterminism
> between alts 1 and 2 of block upon
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3164:9:
>  k==1:TOKEN_IDENTIFIER,TOKEN_LITERAL_STRING,TOKEN_BLOCK_
> OPEN,TOKEN_NAMESPACE_NAME,TOKEN_RESERVED_WORD_NAMESPACE,
> TOKEN_SQUARE_OPEN,TOKEN_KEYWORD_FUNCTION,TOKEN_PAREN_
> OPEN,TOKEN_RESERVED_WORD_GET,TOKEN_RESERVED_WORD_SET,TOKEN_
> KEYWORD_SUPER,TOKEN_OPERATOR_MINUS,TOKEN_OPERATOR_PLUS,
> TOKEN_OPERATOR_STAR,TOKEN_KEYWORD_DELETE,TOKEN_OPERATOR_
> INCREMENT,TOKEN_OPERATOR_DECREMENT,TOKEN_KEYWORD_VOID,
> TOKEN_KEYWORD_TYPEOF,TOKEN_OPERATOR_BITWISE_NOT,TOKEN_
> OPERATOR_LOGICAL_NOT,TOKEN_KEYWORD_NULL,TOKEN_KEYWORD_
> TRUE,TOKEN_KEYWORD_FALSE,TOKEN_KEYWORD_THIS,TOKEN_VOID_
> 0,TOKEN_LITERAL_REGEXP,TOKEN_LITERAL_NUMBER,TOKEN_LITERAL_
> HEX_NUMBER,TOKEN_E4X_WHITESPACE,TOKEN_E4X_COMMENT,
> TOKEN_E4X_CDATA,TOKEN_E4X_PROCESSING_INSTRUCTION,TOKEN_
> E4X_ENTITY,TOKEN_E4X_DECIMAL_ENTITY,TOKEN_E4X_HEX_ENTITY,
> TOKEN_E4X_TEXT,TOKEN_E4X_STRING,TOKEN_E4X_OPEN_TAG_
> START,TOKEN_E4X_CLOSE_TAG_START,HIDDEN_TOKEN_E4X,TOKEN_
> LITERAL_XMLLIST,TOKEN_E4X_BINDING_OPEN,TOKEN_KEYWORD_
> NEW,TOKEN_OPERATOR_ATSIGN
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3176: warning:nondeterminism upon
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3176:     k==1:TOKEN_COMMA
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3176:     between alt 1 and exit
> branch of block
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3176: warning:nondeterminism upon
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3176:     k==1:TOKEN_PAREN_CLOSE
> /Users/christoferdutz/Projects/Apache/Flex/FlexJS/
> flexjs-compiler/compiler/src/main/antlr/org/apache/flex/
> compiler/internal/parsing/as/ASParser.g:3176:     between alt 2 and exit
> branch of block
>
> Having a look this must sort of be related to something Josh committed a
> little more than a month ago. Could we please try to fix this?
>
> Chris
>

Reply via email to