Menu

Rockin!

Help
2002-07-20
2002-10-29
  • Nobody/Anonymous

    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

     
    • Nobody/Anonymous

      Sorry overlooked the C sample, Nevermind!

      Charles

       
    • Alec Panovici

      Alec Panovici - 2002-07-23

      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.

       
    • Nobody/Anonymous

      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

       
      • Alec Panovici

        Alec Panovici - 2002-09-09

        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 ;-)

         
        • Nobody/Anonymous

          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))

           
    • Jan-Hendrik Kuperus

      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...

       
      • Alec Panovici

        Alec Panovici - 2002-09-09

        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.

         
        • Jan-Hendrik Kuperus

          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...

           
    • Smovdorenko Stanislav

        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 ?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.