[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison and gccgo go language
From: |
Akim Demaille |
Subject: |
Re: bison and gccgo go language |
Date: |
Wed, 24 Mar 2010 16:00:35 +0100 |
Le 12 mars 2010 à 01:02, tys lefering a écrit :
> Hello Akim,
Hi Tys,
> The google go language gcc frontend is
> now in gcc svn called gccgo.
>
> Soon it will be in main gcc source tree
> and distributed with gcc installations.
Wow. I didn't know they were there already.
> Are there plans to make bison generate
> output for the go language already ?
Not that I know of :) Do you?
> a yacc based parser generator tool written in go
> http://golang.org/src/cmd/goyacc/goyacc.go
Well, if they already have their own tool, it is unlikely that there is a real
need for Bison here. Unless *they* feel there is something to win with Bison.
> go language project on googlecode:
> http://code.google.com/p/go/
>
> the go language grammar for bison
> http://code.google.com/p/go/source/browse/src/cmd/gc/go.y
>
> go grammar parser error handling is using a awk script:
> http://code.google.com/p/go/source/browse/src/cmd/gc/bisonerrors
> http://code.google.com/p/go/source/browse/src/cmd/gc/go.errors
>
> # It reads Bison's summary of a grammar followed by a file
> # like go.errors, replacing lines beginning with % by the
> # yystate and yychar that will be active when an error happens
> # while parsing that line.
That might be something we should look at. There are probably features we
should provide natively.
bison and gccgo go language, tys lefering, 2010/03/11
- Re: bison and gccgo go language,
Akim Demaille <=