Closed digitalsurgeon closed 9 years ago
Good idea. I'll review this and get back to you hopefully by tomorrow.
Ok, this is a good idea, but there are a couple of things that should change before I merge it in. The big thing is to submit a zsh implementation in a separate PR, instead of adding the skeleton implementation now. Otherwise, there are just some small style issues that should be fixed.
zsh
is unimplemented, remove the zsh-related files and arguments for now.createInstance
method and just use new CodeGen_Bash(...)
unless you can come up with a rationale otherwise.Cons
typedef to something more descriptive.case
clauses shouldn't have newlines in between, as in the rest of the codebase).Thanks for the changes. A couple more small issues before it's ready to merge:
CodeGeneratorConstructor
not ConGeneratorConstructor
createInstance
: I understand now why you did it this way (and it's a neat idea). But, since it wasn't clear to me how it worked, it would be good to have a brief comment in the code explaining it. Also, can you rename it to create_instance
to fit the codebase style?const std::string& sh
should be const std::string &sh
, since that's how the rest of the codebase is.std::cerr
and not std::cout
.Sorry for the nitpicking, but I like to have clear code and consistent style throughout. If we make the effort to keep things clear and consistent now, when the codebase is still small, we'll be much better off in the future as it grows in size. I do appreciate your contributions though.
@digitalsurgeon Sorry, I didn't realize you had updated this with the review comments! I didn't get a notification about the commit you added. I'll fix up the conflicts and get this merged.
Ok, all set. I fixed up a few more style inconsistencies: hope you don't mind.
I am thinking of writing a zsh implementation :)