Re: [go-nuts] How to add a new operator

2018-12-14 Thread Jason E. Aten
In order to see where the "expected operand" syntax error is coming from (it could be many places), add a panic at the top of the error handling parser methods in go/src/cmd/compile/internal/syntax/parser.go's error handling routines, which may be called variously parser.error(), parser.syntaxEr

Re: [go-nuts] How to add a new operator

2018-12-09 Thread Claygod
This is how I do it (and go/src/cmd/compile/internal/gc) , but I still get errors "expected operand" . I would like a little more details from those who have already done this. воскресенье, 9 декабря 2018 г., 19:48:58 UTC+3 пользователь Aram Hăvărneanu написал: > > Start with go/src/cmd/compile/

Re: [go-nuts] How to add a new operator

2018-12-09 Thread Aram Hăvărneanu
Start with go/src/cmd/compile/internal/syntax and go from there. -- Aram Hăvărneanu -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@goog

Re: [go-nuts] How to add a new operator

2018-12-09 Thread Claygod
What do you mean by "-wgr" воскресенье, 9 декабря 2018 г., 18:31:11 UTC+3 пользователь Wagner Riffel написал: > > define operator. > -wgr > > On Sun, Dec 9, 2018, 10:27 AM Claygod > > wrote: > >> Hello, >> >> I want to try adding a new operator. Tell me, in which packages you need >> to edit th

Re: [go-nuts] How to add a new operator

2018-12-09 Thread Wagner Riffel
define operator. -wgr On Sun, Dec 9, 2018, 10:27 AM Claygod wrote: > Hello, > > I want to try adding a new operator. Tell me, in which packages you need > to edit the code? > Maybe once a similar question was discussed, then please give a link > > -- > You received this message because you are s