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!
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)
Can you supply the skeleton .l .ll .y and .yy template files? Thanks
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 :)
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
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