<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>yylval - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/yylval/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Sun, 15 Sep 2013 14:51:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>flex &#038; bison 如何用yylval传递字符串值</title>
		<link>https://www.coder4.com/archives/3975</link>
					<comments>https://www.coder4.com/archives/3975#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 15 Sep 2013 14:51:03 +0000</pubDate>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[bison]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[yylval]]></category>
		<category><![CDATA[字符串]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3975</guid>

					<description><![CDATA[flex进行scanner，将数值存入yylval。 而bison读取yylval之中的值。 神奇的yylval是int类型，如何让它存储多种类型呢？ 以string为例： 需要在.l和.y的头部第一句加入： #define YYSTYPE char* 在.l赋值的时候，要特别注意，需要拷贝字符串。 yylval = strdup(yytext); return WORD; 在.y取用的时候，直接强转就可以了。 (char*)$1 关于更优雅的实现方式，当然[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3975/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
