[Mapserver-users] maplexer and mapparser

Andrew Arace AArace at geonetics.com
Thu Dec 18 17:59:28 EST 2003


This is a multi-part message in MIME format.

--=__PartC49A1440.0__=
Content-Type: text/plain; charset="US-ASCII"

I'm currently working on some modifications to the MapServer source
code, and I've built the whole project in windows 2000, using the .NET
IDE.
I've got the exe, the necessary functions run great.
 
However, my current modifications require me to understand the
maplexer.c and mapparser.c.
I'm a pretty smart guy. But I'm a Unix noobie. (I know, some will think
that's a contradiction...)
 
Anyway, I have NO IDEA what is going on in those files. No clue. People
have told me what yacc is, and bison, but I don't have a very good
understanding, and these files are the root of all my confusion.
 
Basically, what are these used for. what is actually going on when the
mapfile parser calls switch(msyylex()) {...} (mapfile.c,
loadMapInternal())
 
What are the crazy int arrays in the maplexer? such as yy_accept[2174] 
?  What are the maplexer.l and mapparser.y files?
 
I'm just in need of a thorough explanation, please please? 
 
Thanks very much in advance
 
--
Andrew Arace
aarace at geonetics.com
Software Engineer
Geonetics, Inc
(617) 896 - 4409

Disclaimer Notice: This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error free as information can be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard copy version. BSC Companies, Inc.; BSC Group, Inc.; Geonetics, Inc. 15 Elkins Street Boston, Massachusetts 02127 USA. www.BSCGroup.com. 
http://www.bscgroup.com/
--=__PartC49A1440.0__=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit

<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>I'm currently working on some modifications to the MapServer source code, and I've built the whole project in windows 2000, using the .NET IDE.</DIV>
<DIV>I've got the exe, the necessary functions run great.</DIV>
<DIV>&nbsp;</DIV>
<DIV>However, my current modifications require me to understand the maplexer.c and mapparser.c.</DIV>
<DIV>I'm a pretty smart guy. But I'm a Unix noobie. (I know, some will think that's a contradiction...)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Anyway, I have NO IDEA what is going on in those files. No clue. People have told me what yacc is, and bison, but I don't have a very good understanding, and these files are the root of all my confusion.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Basically, what are these used for. what is actually going on when the mapfile parser calls switch(msyylex()) {...} (mapfile.c, loadMapInternal())</DIV>
<DIV>&nbsp;</DIV>
<DIV>What are the crazy int arrays in the maplexer? such as yy_accept[2174]&nbsp; ?&nbsp; What are the maplexer.l and mapparser.y files?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm just in need of a thorough explanation, please please?&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks very much in advance</DIV>
<DIV>&nbsp;</DIV>
<DIV>--<BR>Andrew Arace<BR><A href="mailto:aarace at geonetics.com">aarace at geonetics.com</A><BR>Software Engineer<BR>Geonetics, Inc<BR>(617) 896 - 4409</DIV>
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:"Berkeley Book";
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:3 0 0 0 1 0;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Berkeley Book"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
<table border=1 cellspacing=0 cellpadding=0 align=left style='border-collapse:
 collapse;border:none;mso-border-alt:double gray 2.25pt;mso-table-lspace:9.0pt;
 mso-table-rspace:9.0pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:
 page;mso-table-left:1.95in;mso-table-top:50.3pt;mso-padding-alt:0in 5.4pt 0in 5.4pt'>
 <tr style='height:85.85pt'>
  <td width=734 valign=top style='width:550.45pt;border:double gray 2.25pt;
  padding:0in 5.4pt 0in 5.4pt;height:85.85pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
  font-family:"Berkeley Book"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></b></p>
  <p class=MsoNormal><b><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
  font-family:"Berkeley Book"'>Disclaimer Notice:</span></b><span
  style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:"Berkeley Book"'>
  This message contains confidential information and is intended only for the
  individual named. If you are not the named addressee you should not
  disseminate, distribute, or copy this e-mail. Please notify the sender immediately
  if you have received this e-mail by mistake and delete this e-mail from your
  system. E-mail transmission cannot be guaranteed to be secure or error free
  as information can be intercepted, corrupted, lost, destroyed, arrive late or
  incomplete, or contain viruses. The sender therefore does not accept
  liability for any errors or omissions in the contents of this message, which
  arise as a result of e-mail transmission. If verification is required please
  request a hard copy version.<o:p></o:p></span></p>
  <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
  font-family:"Berkeley Book"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
  <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
  font-family:"Berkeley Book"'>BSC Companies, Inc.; BSC Group, Inc.; Geonetics, Inc.  15 Elkins Street  Boston,
  Massachusetts 02127 USA. <a href="http://www.bscgroup.com/">www.BSCGroup.com</a>.<o:p></o:p></span></p>
  <p class=MsoNormal style='mso-element:frame;mso-element-frame-width:225.0pt;
  mso-element-frame-height:153.0pt;mso-element-frame-hspace:9.0pt;mso-element-wrap:
  around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
  page;mso-element-left:140.45pt;mso-element-top:50.3pt'><![if !supportEmptyParas]>&nbsp;<![endif]><span
  style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:"Berkeley Book"'><o:p></o:p></span></p>
  </td>
 </tr>
</table>
<p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Berkeley Book"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
</BODY></HTML>
--=__PartC49A1440.0__=--




More information about the mapserver-users mailing list