|
I'm currently getting started in C, by using it to write a compiler of sorts (its for an assignment). Much of the code is generated already by BNFC (from the grammar I've written) , but I need to edit it to traverse my tree and do stuff. My question is what is a good development environment to start off in C? I've been using eclipse for java, but the C version doesn't seem to be as usable. What would you all recommend? I'm using Mac OS X, if it matters.
|
# ¿ Mar 1, 2008 02:08 |
|
|
# ¿ May 5, 2024 21:53 |
|
Thanks for the input, I'll probably just stick with doing it manually but using xcode for the syntax colouring. (My reason for wanting to use an IDE was that the vast amount of generated code was making it tricky to do it by hand, and I'm more concerned about getting this project in than learning C at the minute.)
|
# ¿ Mar 2, 2008 01:13 |
|
I'm having a problem which I can't seem to sort out. If I take a piece of code like this: code:
code:
I've tested this by trying to compile simclist into my project as well, and it fails for the same reasons. Exact error is "error: syntax error before ‘char’" (if char is what I'm trying to declare.) I'm using gcc 4.0.1, on mac os x leopard. Any ideas?
|
# ¿ Mar 3, 2008 01:37 |
|
Ah, I see. I guess I'll work on keeping everything where it 'should' be, rather than kludging it then.
|
# ¿ Mar 3, 2008 18:32 |