Joey
Joey
I tried deleting all of the break bigSwitch(s) and I found that the Haxe code still iterated over the big while loop in parse 2 more times then Go, ~and...
Correction the functionality of parseEscape is the same, the difference is right after, it's not jumping out of all of the loops needed I believe, so it keeps re-looping.
I agree with you @elliott5 , and I suspect it's a small minor difference now.
Well! I was kind of right @elliott5 there is a difference, it's incredibly slow. It's so slow that I thought, there was no possibility the control flow was working, but...
I think this is a similar issue to Slice before, where capacity and resizing is not being handled in a similar way as Go and therefore there is a high...
New failing test for regexp/syntax: go2hx: ```go cat{eol{}eol{}eol{}eol{}} ``` go: ```go cat{eol{}eol{}} ``` ```go package main import ( "fmt" "regexp/syntax" "strings" "unicode" ) func main() { r, err := syntax.Parse(`$$`,...
Good guess, I found the problem however, it's to do with the AST generation where $ sign gets a corresponding $ sign in order to remove string Interpolation, however if...
New problem regex/syntax: ### hl ```sh === RUN TestParseInvalidRegexps Exception: Can't cast stdgo.regexp.syntax.ErrorCode_asInterface to stdgo._GoString.GoStringData ``` ### interp ```sh === RUN TestParseInvalidRegexps Exception: Invalid string Called from stdgo.regexp.syntax._Syntax.Syntax_Fields_.testParseInvalidRegexps (./stdgo/regexp/syntax/Syntax.hx line...
@elliott5 Yes that's a great point, I'll work on that now. and write here how it goes.
The invalid string issue has been fixed with a check for string validity before turning into a Haxe string. The exception issue comes from here: https://github.com/go2hx/go2hx/blob/5bf82d932f9f68db6c693c1f19796c4e063b1004/stdgo/regexp/syntax/Syntax.hx#LL4882C52-L4882C52 Because this is a...