Finding Scanner and Parser in GO Source

I was looking around the Go’s github repo at https://github.com/golang/go
, and I couldn’t understand the structure of project at all. how can I understand Go source codes and specially I’d like to find lexical analyzer and parser code.

The source code is under src/, with most of that being the standard library. Commands like go, the compiler, etc are under src/cmd.

The Go compiler specifically is in src/cmd/compile, with scanning & parsing happening in src/cmd/compile/internal/syntax and thereabout.

1 Like

Thank you very much :pray: , I would like to know if there was any way I could learn that with out asking if I was more attentive?

I just clicked around a little.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.