[prev in list] [next in list] [prev in thread] [next in thread]
List: doxygen-users
Subject: Ant: RE: [Doxygen-users] awk-INPUT_FILTER doesn't work
From: Ines Madlsperger <ninette111 () yahoo ! de>
Date: 2005-09-15 7:46:43
Message-ID: 20050915074643.55617.qmail () web25609 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]
Hi everybody!
Now I've realized, that doxygens awk-compiler just accepts 2 if-commands!
Both of this work:
{if($0 ~ /^["\t"| ]*\/\*\*/){comment=1; mycomment="";printcomment=0;} if($0 ~ \
/@since\ 2\.6/){printcomment=1;}}
{if($0 ~ /^["\t"| ]*\/\*\*/){comment=1; mycomment="";printcomment=0;} if \
(comment==1){mycomment="\n"$0;}else {print $0;}}
But both in combination don't work:
{if($0 ~ /^["\t"| ]*\/\*\*/){comment=1; mycomment="";printcomment=0;} if($0 ~ \
/@since\ 2\.6/){printcomment=1;}if (comment==1){mycomment="\n"$0;}else {print $0;}}
Then there is following error:
Preprocessing /home/madlspe/font/Font.hpp...
awk: filter.awk:1: {if($0 ~ /^["\t"| ]*\/\*\*/){comment=1; \
mycomment="";printcomment=0;} if($0 ~ /@since\ 2\.6/){printcomment=1;}if \
(comment==1){m
awk: filter.awk:1: \
^ invalid char '' in expression
I don't understand this!!! What is the prblem, when it just accepts 2 if-commands?? \
Did I forgot some important signs?
I hope you can help me!
Nine
Thanks! No it begins to compile the code at least! Unfortunately there are manny \
parsing error, although the script alone is working fine! Is it possible, that \
doxygen has an old awk-compiler in it?
My filter.awk-File looks like this:
{if($0 ~ /^["\t"| ]*\/\*\*/){
comment=1;
mycomment=0;
printcomment=0;
} if($0 ~ /@since\ 2\.6/){
printcomment=1;
} if (comment==1){
mycomment=mycomment "\n" $0; Here the assignment of the variable mycomment \
doesn't work, it's just accepted like mycomment="\n"$0; }else {
print $0;
} if($0 ~ /[*]\/$/) {
comment=0;
if(printcomment==1) {
print mycomment;
} else {
printcomment=0;
}
}}
What can be the reason, that doxygen doesn't accept the awk-script?
Greentings
Nine.
"Friedrich, Lars" <lars.friedrich@wago.com> schrieb:
> console output:
> Preprocessing /home/das/font/test1.hpp...
> sh: line 1: awk{if($0~/^[\t|]*\/\*\*/){comment=1;mycomment= \
> ;printcomment=0;};if($0~/@since2\.6/){printcomment= \
> 1;};if(comment==1){mycomment=mycomment\n$0;}else{print$0;};if($0~/[*]\/$/){comment=0;if(printcomment==1)
> {printmycomment;}else{printcomment=0;};};}: No such file or directory
> Read 185 bytes
> Why this doesn't work???? What is my mistake?
I would try
INPUT_FILTER = awk -f awk.myscript
and
awk.myscript
{if($0~/^[\t|]*\/\*\*/){comment=1;mycomment= \
;printcomment=0;};if($0~/@since2\.6/){printcomment= \
1;};if(comment==1){mycomment=mycomment\n$0;}else{print$0;};if($0~/[*]\/$/){comment=0;if(printcomment==1)
{printmycomment;}else{printcomment=0;};};}
or however an awk scriptfile looks like. I'm sed user.
Best regards,
Lars Friedrich
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
---------------------------------
Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher
[Attachment #3 (text/html)]
<DIV>Hi everybody!</DIV>
<DIV> </DIV>
<DIV>Now I've realized, that doxygens awk-compiler just accepts 2 \
if-commands!</DIV> <DIV> </DIV>
<DIV>Both of this work:</DIV>
<DIV><FONT face=courier>{if($0 ~ /^["\t"| \
]*\/\*\*/){comment=1; mycomment="";printcomment=0;} if($0 ~ </FONT><A><FONT \
face=courier>/@since\</FONT></A><FONT face=courier> \
2\.6/){printcomment=1;}}</FONT></DIV> <DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=courier>{if($0 ~ /^["\t"| \
]*\/\*\*/){comment=1; mycomment="";printcomment=0;} if \
(comment==1){mycomment="\n"$0;}else {print $0;}}</FONT></DIV> <DIV> </DIV>
<DIV><FONT face=arial>But both in combination don't work:</FONT></DIV>
<DIV><FONT face=courier>{if($0 ~ /^["\t"| \
]*\/\*\*/){comment=1; mycomment="";printcomment=0;} if($0 ~ </FONT><A><FONT \
face=courier>/@since\</FONT></A><FONT face=courier> 2\.6/){printcomment=1;}if \
(comment==1){mycomment="\n"$0;}else {print $0;}}</FONT></DIV> <DIV> </DIV>
<DIV>Then there is following error:</DIV>
<DIV><FONT face=courier>Preprocessing /home/madlspe/font/Font.hpp...<BR>awk: \
filter.awk:1: {if($0 ~ /^["\t"| ]*\/\*\*/){comment=1; \
mycomment="";printcomment=0;} if($0 ~ </FONT><A><FONT \
face=courier>/@since\</FONT></A><FONT face=courier> 2\.6/){printcomment=1;}if \
(comment==1){m<BR>awk: \
filter.awk:1: & \
nbsp; &nb \
sp;   \
; & \
nbsp; &nb \
sp;   \
; & \
nbsp; &nb \
sp;   \
; & \
nbsp; &nbs
p;
& \
nbsp; &nb \
sp;   \
; & \
nbsp; &nb \
sp;   \
; & \
nbsp; &nb \
sp; </FONT></DIV>
<DIV><FONT face=courier> & \
nbsp; \
^ invalid char '' in expression</FONT><BR></DIV> <DIV>I don't understand this!!! What \
is the prblem, when it just accepts 2 if-commands?? Did I forgot some important \
signs?</DIV> <DIV> </DIV>
<DIV>I hope you can help me!</DIV>
<DIV>Nine<BR></DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: \
#1010ff 2px solid"> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: \
5px; BORDER-LEFT: #1010ff 2px solid"> <DIV>Thanks! No it begins to compile the code \
at least! Unfortunately there are manny parsing error, although the script alone is \
working fine!</DIV> <DIV>Is it possible, that doxygen has an old awk-compiler in it? \
</DIV> <DIV> </DIV>
<DIV>My filter.awk-File looks like this:</DIV>
<DIV><FONT face=courier>{if($0 ~ /^["\t"| ]*\/\*\*/){</FONT></DIV>
<DIV><FONT face=courier> comment=1; </FONT></DIV>
<DIV><FONT face=courier> mycomment=0;</FONT></DIV>
<DIV><FONT face=courier> printcomment=0;</FONT></DIV>
<DIV><FONT face=courier>} if($0 ~ </FONT><A><FONT \
face=courier>/@since\</FONT></A><FONT face=courier> 2\.6/){</FONT></DIV> <DIV><FONT \
face=courier> printcomment=1;</FONT></DIV> <DIV><FONT \
face=courier>} if (comment==1){</FONT></DIV> <DIV><FONT \
face=courier> mycomment=mycomment "\n" $0; \
</FONT><FONT face="arial narrow" color=#ff0000 size=1>Here the assignment of the \
variable mycomment doesn't work, it's just accepted like \
mycomment="\n"$0;</FONT></DIV> <DIV><FONT face=courier>}else {</FONT></DIV>
<DIV><FONT face=courier> print $0;</FONT></DIV>
<DIV><FONT face=courier>} if($0 ~ /[*]\/$/) {</FONT></DIV>
<DIV><FONT face=courier> comment=0; </FONT></DIV>
<DIV><FONT face=courier> if(printcomment==1) {</FONT></DIV>
<DIV><FONT face=courier> print \
mycomment;</FONT></DIV> <DIV><FONT face=courier> } else \
{ </FONT></DIV> <DIV><FONT \
face=courier> \
printcomment=0; </FONT></DIV> <DIV><FONT face=courier> \
} </FONT></DIV> <DIV><FONT face=courier>}}</FONT></DIV>
<P><FONT face=Courier></FONT> </P>
<P><FONT face=arial>What can be the reason, that doxygen doesn't accept the \
awk-script?</FONT></P> <P><FONT face=arial>Greentings</FONT></P>
<P><FONT face=arial>Nine.</FONT></P>
<DIV><BR><BR><B><I>"Friedrich, Lars" <lars.friedrich@wago.com></I></B> \
schrieb:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; \
BORDER-LEFT: #1010ff 2px solid">> console output:<BR>> Preprocessing \
/home/das/font/test1.hpp...<BR>> sh: line 1: \
awk{if($0~/^[\t|]*\/\*\*/){comment=1;mycomment= \
;printcomment=0;};if($0~/@since2\.6/){printcomment=<BR>> \
1;};if(comment==1){mycomment=mycomment\n$0;}else{print$0;};if($0~/[*]\/$/){comment=0;if(printcomment==1)<BR>> \
{printmycomment;}else{printcomment=0;};};}: No such file or directory<BR>> Read \
185 bytes<BR><BR>> Why this doesn't work???? What is my mistake?<BR><BR>I would \
try<BR><BR>INPUT_FILTER = awk -f \
awk.myscript<BR><BR>and<BR><BR>awk.myscript<BR><BR>{if($0~/^[\t|]*\/\*\*/){comment=1;mycomment= \
;printcomment=0;};if($0~/@since2\.6/){printcomment=<BR>1;};if(comment==1){mycomment=my \
comment\n$0;}else{print$0;};if($0~/[*]\/$/){comment=0;if(printcomment==1)<BR>{printmycomment;}else{printcomment=0;};};}<BR><BR>or \
however an awk scriptfile looks like. I'm sed user.<BR><BR>Best regards,<BR>Lars \
Friedrich<BR><BR><BR>-------------------------------------------------------<BR>SF.Net \
email is sponsored by:<BR>Tame your development challenges with Apache's Geronimo App \
Server. Download<BR>it for free - -and be entered to win a 42" plasma tv or your very \
own<BR>Sony(tm)PSP. Click here to play: \
http://sourceforge.net/geronimo.php<BR>_______________________________________________<BR>Doxygen-users \
mailing list<BR>Doxygen-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/doxygen-users<BR></BLOCKQUOTE>
<P>
<HR SIZE=1>
Gesendet von <A href="http://de.mail.yahoo.com/" target=_new>Yahoo! Mail</A> - Jetzt \
mit 1GB kostenlosem Speicher</BLOCKQUOTE> <P>
<HR SIZE=1>
Gesendet von <A href="http://de.mail.yahoo.com/" target=_new>Yahoo! Mail</A> - Jetzt \
mit 1GB kostenlosem Speicher</BLOCKQUOTE><p> <hr size=1>Gesendet von <a \
href="http://de.mail.yahoo.com" target=_new>Yahoo! Mail</a> - Jetzt mit 1GB \
kostenlosem Speicher
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic