Bug 58025

Summary: file wizard, global types: flex and bison/yacc integration
Product: [Applications] kdevelop Reporter: Daniel Franke <franke.daniel>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 3.0.0a4   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: Templates for l/ll respectively y/yy files

Description Daniel Franke 2003-05-02 17:52:23 UTC
Version:           3.0.0a4 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 3.2.2
OS:          SunOS (sun4u) release 5.8

I would like to have flex (*.l) and bison (*.y) file types in file wizard->global types. (also add a skeleton template file?!)
If you add them it would also be nice if 
	AM_PROG_LEX
	AC_PROC_YACC
could be added to configure.in automaticly :)

 --> BTW: what's 'ylwrap'?

Thanks!
Comment 1 Daniel Franke 2003-05-03 13:32:48 UTC
OK, 'ylwrap' is part of automake ...  
 
so, additional wishes:  
 * run 'automake --add-missing --copy' 
 
This might be part of autoconf/automake: 
make sure that bison is run _before_ flex ... otherwise token tables from yy.tab.h 
aren't available in *.l 
 
Addendum: 
 *.l -> C sources: gcc 
 *.ll -> C++ sources: g++  
 
So, not only *.l but *.ll also would be useful (corresponding: *y./*yy) 
Comment 2 Amilcar do Carmo Lucas 2003-06-04 11:21:25 UTC
Can you supply the skeleton .l .ll .y and .yy template files? 
 
Thanks 
 
Comment 3 Daniel Franke 2003-06-10 18:27:45 UTC
Created attachment 1770 [details]
Templates for l/ll respectively y/yy files

If you asked for files as found in
$KDEDIR/share/apps/kdevfilecreate/file-templates
there they are ... otherwise let me know what was expected :)
Comment 4 Amilcar do Carmo Lucas 2003-06-16 17:15:58 UTC
Yes, the files are fine and are going to be commited.
I'm also going to close this bug.
If you want something else related to flex or bison, please open a new bug report
Comment 5 Amilcar do Carmo Lucas 2003-06-16 17:18:40 UTC
Subject: kdevelop/parts/filecreate

CVS commit by aclu: 

Added flex and bison template files.
Thanks to Daniel Franke ( daniel.franke at imbs.uni-luebeck.de )  for the files.

CCMAIL:58025-done@bugs.kde.org


  A            file-templates/l   1.1
  A            file-templates/ll   1.1
  A            file-templates/y   1.1
  A            file-templates/yy   1.1
  M +1 -1      file-templates/Makefile.am   1.12
  M +1 -1      kdevpart_filecreate.rc   1.5
  M +12 -0     template-info.xml   1.13


--- kdevelop/parts/filecreate/kdevpart_filecreate.rc  #1.4:1.5
@@ -1,4 +1,4 @@
 <!DOCTYPE kpartgui>
-<kpartplugin name="filecreate" library="libfilecreateplugin" version="1">
+<kpartplugin name="filecreate" library="libfilecreateplugin" version="2">
 <MenuBar>
  <Menu name="file">

--- kdevelop/parts/filecreate/template-info.xml  #1.12:1.13
@@ -112,4 +112,16 @@
         <descr>A new Delphi project.</descr>
       </type>
+      <type ext="l" name="flex C source" create="template" icon="source_l">
+        <descr>A new empty flex C source source file.</descr>
+      </type>
+      <type ext="ll" name="flex C++ source" create="template" icon="source_l">
+        <descr>A new empty flex C++ source source file.</descr>
+      </type>
+      <type ext="y" name="bison C source" create="template" icon="source_y">
+        <descr>A new empty bison C source source file.</descr>
+      </type>
+      <type ext="yy" name="bison C++ source" create="template" icon="source_y">
+        <descr>A new empty bison C++ source source file.</descr>
+      </type>
     </filetypes>
   </kdevfilecreate>

--- kdevelop/parts/filecreate/file-templates/Makefile.am  #1.11:1.12
@@ -1,3 +1,3 @@
 
 rcdir = $(kde_datadir)/kdevfilecreate/file-templates
-rc_DATA = py ui ui-dialog ui-mainwin h cpp ui-confdialog ui-dialogb ui-widget ui-dialogr ui-tabdialog ui-wizard c java php F f f77 f90 f95 for ftn fpp pl pm rb pp-program pp-unit pas-program pas-unit dpr adb ads
+rc_DATA = py ui ui-dialog ui-mainwin h cpp ui-confdialog ui-dialogb ui-widget ui-dialogr ui-tabdialog ui-wizard c java php F f f77 f90 f95 for ftn fpp pl pm rb pp-program pp-unit pas-program pas-unit dpr adb ads l ll y yy