
{"id":7869,"date":"2012-11-22T14:18:45","date_gmt":"2012-11-22T14:18:45","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7869"},"modified":"2012-11-22T14:18:45","modified_gmt":"2012-11-22T14:18:45","slug":"bison-tinkering","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/11\/22\/bison-tinkering\/","title":{"rendered":"Bison Tinkering"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n\/* Reverse polish notation calculator. *\/\n\n%{\n#define YYSTYPE double\n#include \n%}\n\n%token NUM\n\n%% \/* Grammar rules and actions follow *\/\n$ 4.2.36 19 519---&gt; bison rpcalc.y\nrpcalc.y:11.1: syntax error, unexpected end of file\n$ 4.2.36 20 520---&gt;\n\n<\/pre>\n<pre>\n$ 4.2.36 1 501---&gt; vim la.y\n$ 4.2.36 2 502---&gt; bison la.y\nla.y:6.1: invalid character: `#'\nla.y:6.2-8: syntax error, unexpected identifier\n$ 4.2.36 3 503---&gt; mv la.y la.c\n$ 4.2.36 4 504---&gt; gcc la.c\nla.c: In function \u2018yylex\u2019:\nla.c:18:18: error: \u2018stdin\u2019 undeclared (first use in this function)\nla.c:18:18: note: each undeclared identifier is reported only once for each function it appears in\nla.c:19:7: warning: incompatible implicit declaration of built-in function \u2018scanf\u2019 [enabled by default]\nla.c:19:22: error: \u2018yylval\u2019 undeclared (first use in this function)\nla.c:20:14: error: \u2018NUM\u2019 undeclared (first use in this function)\nla.c:23:12: error: \u2018EOF\u2019 undeclared (first use in this function)\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session \/* Reverse polish notation calculator. *\/ %{ #define YYSTYPE double #include %} %token NUM %% \/* Grammar rules and actions follow *\/ $ 4.2.36 19 519&#8212;&gt; bison rpcalc.y rpcalc.y:11.1: syntax error, unexpected end of file $ 4.2.36 20 520&#8212;&gt; $ 4.2.36 1 501&#8212;&gt; vim la.y $ 4.2.36 2 502&#8212;&gt; bison la.y la.y:6.1: invalid &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/11\/22\/bison-tinkering\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bison Tinkering&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7869"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=7869"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7869\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}