anltr中如何声明变量
.-noscript-blocked { border: 1px solid red !important; background: white url("chrome://noscript/skin/icon32.png") no-repeat left top !important; opacity: 0.6 !important; }
column_ref_2[string& szTableName, string& szColumnName]
{
string s1,s2,s3, s4="";
}
:
c:id { s1=#c->getText();}
(PERIOD c1:id { s2=#c1->getText();}
(PERIOD c2:id { s3=#c2->getText();}
(PERIOD c3:id { s4=#c3->getText();}
)?)?)?
{
if (s2=="")
{
szTableName="";
szColumnName=s1;
}
else
{
szTableName=s1;
szColumnName=s2;
}
}
;
//}
注意 不要声明为
column_ref_2[string& szTableName, string& szColumnName]
:
{
string s1,s2,s3, s4="";
}
c:id { s1=#c->getText();}
(PERIOD c1:id { s2=#c1->getText();}
(PERIOD c2:id { s3=#c2->getText();}
(PERIOD c3:id { s4=#c3->getText();}
)?)?)?
{
if (s2=="")
{
szTableName="";
szColumnName=s1;
}
else
{
szTableName=s1;
szColumnName=s2;
}
}
;
//}