<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 04.01.2013 12:51, schrieb Anton
Kavalenka:<br>
</div>
<blockquote cite="mid:50E6C251.3080606@tut.by" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 03.01.2013 12:42, Jonas Maebe wrote:
<blockquote
cite="mid:5B387888-56AC-47D1-BDAF-407572DDE8AF@elis.ugent.be"
type="cite"><br>
<div>
<div>On 03 Jan 2013, at 07:52, Andrzej Borucki wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Monaco; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; "><span class="Apple-style-span"
style="font-family: monospace; ">I look to
fpc-2.6.0.source.zip, directory fpc-2.6.0\compiler. I
see array<br>
arraytokeninfo in file tokens.pas where are keywords
like 'repeat' and<br>
'until'. But I can't find any parser (and lexer, dfa
etc). How FreePascal<br>
compiler proceed with grammar?<br>
</span></span></blockquote>
</div>
<br>
<div>The lexer is mostly in scanner.pas</div>
<div><br>
</div>
<div>The parser is in pbase.pas (base parser routines),
pstatmnt.pas (parsing statements), pexpr.pas (parsing
expressions), pdecl.pas (generic declaration parsing),
pdecvar.pas (parsing variable and property declarations),
pdecsub.pas (parsing procedure/method declarations),
pdecobj.pas (parsing object/class declarations), ptype.pas
(generic type parsing).</div>
<div><br>
</div>
<div>The parser is a manually written recursive-descent parser.
There is no formal grammar.</div>
</blockquote>
<br>
<br>
Dear Jonas,<br>
<br>
could you point me where is $R directive is handled , I'd like to
make patch for <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="http://bugs.freepascal.org/view.php?id=20652">http://bugs.freepascal.org/view.php?id=20652</a><br>
</blockquote>
While I'm not Jonas I can answer you nevertheless: the file is
$fpcdir/compiler/scandir.pas in the procedure "dir_resource".<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>