Haxe flixel-addons error "Unknown identifier : WALL" - haxe

C:/HaxeToolkit/haxe/lib/flixel-addons/2,11,0/flixel/addons/display/FlxExtendedSprite.hx:11:
characters 8-37 : Type not found : flixel.util.FlxDirectionFlags
C:/HaxeToolkit/haxe/lib/flixel-addons/2,11,0/flixel/addons/display/FlxExtendedSprite.hx:484:
characters 21-25 : Unknown identifier : WALL
C:/HaxeToolkit/haxe/lib/flixel-addons/2,11,0/flixel/addons/display/FlxExtendedSprite.hx:504:
characters 21-25 : Unknown identifier : WALL
C:/HaxeToolkit/haxe/lib/flixel-addons/2,11,0/flixel/addons/display/FlxExtendedSprite.hx:530:
characters 21-28 : Unknown identifier : CEILING
C:/HaxeToolkit/haxe/lib/flixel-addons/2,11,0/flixel/addons/display/FlxExtendedSprite.hx:550:
characters 21-26 : Unknown identifier : FLOOR
Can someone help me?

Related

What is the problem with the following antlr4 grammar

I'm having trouble parsing a simple grammar. I believe the issue is that there are conflicting rules. Here is the text I'm trying to parse:
redis 6.2.6-debian-10-r49 Running
account-migrator 0.83.0 Pending
This represents services that have a name, version and status. Here is the grammar that isn't working:
main : statusLine+;
statusLine : serviceName versionNumber status;
serviceName : SERVICE_NAME;
versionNumber : VERSION_NUMBER;
status : STATUS;
SERVICE_NAME : [a-zA-Z-]+;
VERSION_NUMBER : [a-zA-Z0-9-]+ ('.' [a-zA-Z0-9-]+)*;
STATUS : [a-zA-Z]+;
WS : [ \n\t]+ -> skip;
I believe my grammar confuses the status for a service name because my visitor finds nothing for status on the first visit, but the second visit gets the status of the first line as the service name of the second.
So the question I have is, what can I do to parse these lines correctly?
The problem is that you have multiple rules that match the same input. Everything which STATUS could match, will actually be matched by SERVICE_NAME. Check out this parse tree:
The token STATUS is never produced, but Running became a SERVICE_NAME token.
So, instead of trying to add semantics to the lexer (by using different names, and hence meaning, for the same input) use a common lexer rule:
main : statusLine+;
statusLine : serviceName versionNumber status;
serviceName : IDENTIFIER;
versionNumber : VERSION_NUMBER;
status : IDENTIFIER;
IDENTIFIER: [a-zA-Z-]+;
VERSION_NUMBER: [a-zA-Z0-9-]+ ('.' [a-zA-Z0-9-]+)*;
WHITE_SPACE: [ \u000B\t\r\n] -> skip;
which then gives you the proper parse tree:

When I try to build the FNF Kade Engine's source code it won't work (lime test and build wise)

C:\HaxeToolkit\haxe\std/eval/_std/haxe/Exception.hx:39: characters 4-53 : Array<haxe.StackItem> should be haxe.CallStack
C:\HaxeToolkit\haxe\std/eval/_std/haxe/Exception.hx:42: characters 4-48 : Array<haxe.StackItem> should be haxe.CallStack
C:\HaxeToolkit\haxe\std/eval/_std/haxe/Exception.hx:57: characters 27-44 : Class<haxe.CallStack> has no field exceptionToString
C:\HaxeToolkit\haxe\std/eval/_std/haxe/Exception.hx:82: characters 20-27 : haxe.CallStack has no field asArray
C:\HaxeToolkit\haxe\std/eval/_std/haxe/Exception.hx:4: lines 4-89 : Field stack has different type than in core type
C:\HaxeToolkit\haxe\std/eval/_std/haxe/Exception.hx:4: lines 4-89 : haxe.CallStack should be haxe.CallStack
export/release/windows/haxe/ApplicationMain.hx:298: characters 1-8 : Build failure
It creates the export folder but it's missing the exe.
How do I fix this?

Visual Paradigm: Invalid Syntax Highlighting without acutal syntax mistake (as far as I can see)

I think I have encountered an error message that is not necessarily valid or helpful. If it is valid, please tell me what the mistake I encounter is triggered by.
You do not follows UML notation and you exchanged the parameter and its type, your operations must be
create(entity : E) : Result<E>
create(entities : iterable<E>) : ResultCollection<E>
Your create(E : entity) : Result<E> was accepted 'syntactically' because the var can be E and its type entity, but in the second case the var name iterable<E> is illegal and the tool refuses that.
From formal/2017-12-05 §9.6.4 page 117 and 118 :
If shown in a diagram, an Operation is shown as a text string of the form:
[<visibility>] <name> ‘(‘ [<parameter-list>] ‘)’
[‘:’ [<return-type>] [‘[‘ <multiplicity-range> ‘]’]
[‘{‘ <oper-property> [‘,’ <oper-property>]* ‘}’]]
and <parameter-list> is a list of Parameters of the Operation in the following format:
<parameter-list> ::= <parameter> [‘,’<parameter>]*
and § 9.4.4 page 110 :
<parameter> ::= [<direction>] <parameter-name> ’:’ <type-expression>
[’[’<multiplicity-range>’]’] [’=’ <default>]
[’{’ <parm-property> [’,’ <parm-property>]* ’}’]
So it must be <parameter-name> ’:’ <type-expression> rather than <type-expression> ’:’ <parameter-name> as you did

Custom analyzer elasticsearch soundex plus snowball

The following works for me (searching for 'testing' also returns fields with 'test'):
index :
analysis :
analyzer :
default :
type : snowball
language : english
when set up in my elasticsearch.yml file .
I want to combine this with the soundex I have installed so I have tried this :
index :
analysis :
analyzer :
default :
type : custom
tokenizer : standard
filter : [standard, lowercase, soundex_filter, stemming]
filter :
soundex_filter :
type : phonetic
encoder : soundex
replace : true
stemming :
type : snowball
language : english
but no success, none of them seems to work (no stemming or soundex)
Anybody had any success at combining filters ?
for those interested, here is the right syntax
index :
analysis :
analyzer :
default :
type : custom
tokenizer : standard
filter : [standard, lowercase, stemming_filter, soundex_filter]
filter :
soundex_filter :
type : phonetic
encoder : soundex
replace : false
stemming_filter :
type : snowball
language : English
replace true was somehow overriding the stemming...

Drools 5.4.0- Error with a DSL consequence containinig three captures with combination of integers and strings

I'm trying to write a DSL for handling messages. I have several constructs working with the below one causing errors -
from the DSL -
[consequence][]on validation failure of field {bit} set field {bit2} to "{field_value}"=System.out.println("Test");
In the DSLR -
on validation failure of field 2 set field 39 to "181"
Strangely enough, the following works OK
from the DSL -
[consequence][]on validation failure of field {bit} set field {bit2} to {field_value}=System.out.println("Test");
In the DSLR -
on validation failure of field 2 set field 39 to 181
(Please note the dropped double quotes on "field_value")
Am I doing something wrong? . I'm using Drools 5.4.0 Final.
Thanks!
Rule Compilation error : [Rule name='handle authorization transactions for validation failures']
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (21:1344) : on cannot be resolved to a type
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (21:1358) : Syntax error on token "failure", ; expected
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (21:1366) : of cannot be resolved to a type
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (21:1369) : Duplicate local variable field
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (21:1375) : Syntax error on token "2", ; expected
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (22:1450) : on cannot be resolved to a type
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (22:1453) : Duplicate local variable validation
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (22:1464) : Syntax error on token "failure", ; expected
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (22:1472) : of cannot be resolved to a type
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (22:1475) : Duplicate local variable field
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (22:1481) : Syntax error on token "3", ; expected
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (23:1556) : on cannot be resolved to a type
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (23:1559) : Duplicate local variable validation
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (23:1570) : Syntax error on token "failure", ; expected
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (23:1578) : of cannot be resolved to a type
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (23:1581) : Duplicate local variable field
defaultpkg/Rule_handle_authorization_transactions_for_validation_failures_bea353bc1d7c4114aa7fb7548bcc7b83.java (23:1587) : Syntax error on token "4", ; expected
It looks like drools applies rules in a recursive manner!
I had the entry in DSL as
[consequence][]on validation failure of field {bit} set field {second_bit} to "{val}"=...
but there was also another one like this -
[consequence][]set field {bit} to "{field_value}"= ...
so drools matched the last portion of the first entry to the RHS of the second!. Thanks to the drools.dump.dir option and I could see what was happenning!

Resources