Awesome! It is much more intuitive and clear, although im new to compiler compilers, and was wondering if someone could provide an input file to CPPCC describing a familiar language, like python, php, pascal, or something along those lines. Also, how would I make it OO, how would one parse methods and members with the . operator ? Thanks !
Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am on linux, but use it on windows also and it works great. I am going to try to add support to scite for syntax highlighting and compiing, I also might just start from scrath and make an IDE with just Scintilla and wxWindows. Also should have emacs highlighting shortly :)
Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yea, a full fledged mode is beyond me, i looked over some of the php and python modes, and since i know little to know elisp im afraid it'll be too hard for me :(. There is simple keyword highlighting at the end of this you can drop into ~/.emacs. Im also telling everyone i know that uses emacs about cppcc in hopes that one of them will make full fledged mode.
I'm working with it on Windows (WinXP to be exact) and it works perfectly.
If someone could provide me with information on how to make my language OO, I would be very grateful, I've been experimenting a bit, but with no real success yet.
If you want me to test anything on windows, just let me know...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think you may need to get a book on compilers for that, it's pretty hard to tackle the subject in a post. Maybe if you send me your grammar i can give some suggestions. Also, if you find any useful resources on the net and have a few minutes to send me the links that would be great, i'm planning to add a compilers resources page to the CppCC site.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm working on the project ServerBuilder and I writed a parser & lexical analyzer using flex & bison but later I've encountered some problem's when I tried to add some futures. While I was tring to solve the problem I found CppCC & I found that it's cool thing. But I have some questions.
Could somebody tell me how to implement for example do..while, for(), if() ops and function calling? For example I have a function after the current position, so I don't know where I have to jump to. How to do it ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Awesome! It is much more intuitive and clear, although im new to compiler compilers, and was wondering if someone could provide an input file to CPPCC describing a familiar language, like python, php, pascal, or something along those lines. Also, how would I make it OO, how would one parse methods and members with the . operator ? Thanks !
Charles
Sorry overlooked the C sample, Nevermind!
Charles
Thanks :-)
From your question i see you are using it on Linux, is that right ? Did anyone manage to use the win32 build? I didn't get any feedback on that.
alec.
I am on linux, but use it on windows also and it works great. I am going to try to add support to scite for syntax highlighting and compiing, I also might just start from scrath and make an IDE with just Scintilla and wxWindows. Also should have emacs highlighting shortly :)
Charles
Anything on the emacs highlighting yet ? That would be very cool.
As about the ide, i have some thoughts on this, maybe we should discuss this a bit... who knows ;-)
yea, a full fledged mode is beyond me, i looked over some of the php and python modes, and since i know little to know elisp im afraid it'll be too hard for me :(. There is simple keyword highlighting at the end of this you can drop into ~/.emacs. Im also telling everyone i know that uses emacs about cppcc in hopes that one of them will make full fledged mode.
(defvar cppcc-mode
'(
("\\(<.*?:\\(.*?\\)\\)" 1 font-lock-function-name-face)
("\\(SCANNER\\|PARSER\\|TOKEN\\|SPECIAL\\|SKIP\\|START\\|MORE\\|OPTIONS\\)" 1 font-lock-keyword-face)
("\\(<.*?>\\)" 1 font-lock-builtin-face)
))
(font-lock-add-keywords 'c++-mode cppcc-mode)
(setq auto-mode-alist (cons '("\\.cg\\'" . c++-mode) auto-mode-alist))
I'm working with it on Windows (WinXP to be exact) and it works perfectly.
If someone could provide me with information on how to make my language OO, I would be very grateful, I've been experimenting a bit, but with no real success yet.
If you want me to test anything on windows, just let me know...
I think you may need to get a book on compilers for that, it's pretty hard to tackle the subject in a post. Maybe if you send me your grammar i can give some suggestions. Also, if you find any useful resources on the net and have a few minutes to send me the links that would be great, i'm planning to add a compilers resources page to the CppCC site.
Well, I've borrowed a book on compilers from a friend and I already have some ideas about how to get OO into the grammar...
But if I'll find anything, I'll let you know...
I'm working on the project ServerBuilder and I writed a parser & lexical analyzer using flex & bison but later I've encountered some problem's when I tried to add some futures. While I was tring to solve the problem I found CppCC & I found that it's cool thing. But I have some questions.
Could somebody tell me how to implement for example do..while, for(), if() ops and function calling? For example I have a function after the current position, so I don't know where I have to jump to. How to do it ?