realistschuckle / gohaml

An implementation of the popular XHTML Abstraction Markup Language using the Go language.
MIT License
95 stars 13 forks source link

Struggling to compile #9

Closed edhgoose closed 11 years ago

edhgoose commented 11 years ago

Hi,

I'm having trouble trying to install this - if I run go install, I get a lot of undefineds.

Any ideas what's going wrong? Looking at the code it doesn't even look like it should work. But that might just be my misunderstanding!

$ go install "github.com/realistschuckle/gohaml/lib"

github.com/realistschuckle/gohaml/lib

C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:319: undefined: yyParse C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:323: undefined: Output C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:339: undefined: yySymType C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:345: undefined: FOR C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:347: undefined: RANGE C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:349: undefined: IDENT C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:353: undefined: ATOM C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:357: undefined: ATOM C:\Go\src\pkg\github.com\realistschuckle\gohaml\lib\parser.go:360: undefined: ATOM

a2800276 commented 11 years ago

we didn't update the make file. quick solution: run go tool yacc lang.y in the lib subdirectory and everything should compile. Sorry about that. I'll try to fix the make file tomorrow.

realistschuckle commented 11 years ago

@edhgoose It should be all fixed, now. Just go get github.com/realistschuckle/gohaml and it should show up in your pkg directory. Or import it in your code and go should download it for you.

edhgoose commented 11 years ago

Awesome. Works a treat. Thanks a million!