Re: How to find note items associated with a ET_FUNCTION
Colin Adams <[email protected]> Sun, 17 Feb 2013 14:43:00 +0000
| Newsgroups | gmane.comp.lang.eiffel.gobo.devel |
|---|---|
| Message-ID | <CABHqrU=qpMYF2vL_Mbx9mduqwyW-ven-BgspY9JP45ebY31bvQ@mail.gmail.com> |
--===============4738399593089116332== Content-Type: multipart/alternative; boundary=20cf307f3a400aebc704d5eca011 --20cf307f3a400aebc704d5eca011 Content-Type: text/plain; charset=UTF-8 Additional codes I encounter include: VWEQ VUAR-2 On 17 February 2013 14:33, Colin Adams <[email protected]> wrote: > Thanks for that. > In fact, I'm not getting as far as that, as after parsing the ECF, > last_system.error_handler.has_eiffel_error returns True, as it finds errors > in > the ISE standard libraries. > > I'm using ES 7.2 (Linux 64-bit), and the Gobo libraries that it ships. > Would I be better using git HEAD gobo? Or do I possibly just have incorrect > settings on the parser? > > The errors that it finds are: > > 1 Syntax error: > Syntax error: > line 40 column 39 in > /home/colin/Eiffel72/library/base/elks/kernel/utf_converter.e > > escape_character: CHARACTER_32 = '%/0xFFFD/' > ^ > -- Unicode replacement character to escape invalid > UTF-8 or UTF-16 encoding. > > > quite a lot of GVKBU-1 errors. E.g. > > > [GVKBU-1] class REAL_64_REF (78,2): unknown built-in routine > `positive_infinity' in class REAL_64_REF. > > and quite a lot of VEEN-8 errors. E.g. > > [VEEN-8] class ARRAYED_LIST (761,10): `l_count' appearing in feature > `correct_mismatch' or one of its possibly nested inline agents, is an > object-test local that is used outside of its scope. > > > On 17 February 2013 12:48, Eric Bezault <[email protected]> wrote: > >> On 2/16/2013 8:39 PM, Colin Adams wrote: >> >>> Having parsed an ECF file to flat degree 3, how can I find which note >>> items are associated with a function? >>> >> >> It's available in ET_FEATURE.first_indexing. >> In order to make sure that it is populated by the parser, >> you have to make sure that it uses an instance of >> ET_DECORARED_AST_FACTORY, instead of a ET_AST_FACTORY: >> >> l_ast_factory: ET_DECORARED_AST_FACTORY >> ... >> create l_ast_factory.make >> l_system.set_ast_factory (l_ast_factory) >> >> -- >> Eric Bezault >> mailto:[email protected] >> http://www.gobosoft.com >> > > --20cf307f3a400aebc704d5eca011 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Additional codes I encounter include:<div><br></div><div>VWEQ</div><div>VUA= R-2</div><div><br><br><div class=3D"gmail_quote">On 17 February 2013 14:33,= Colin Adams <span dir=3D"ltr"><<a href=3D"mailto:[email protected]= om" target=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Thanks for that.<div>In fact, I'm not ge= tting as far as that, as after parsing the ECF, last_system.error_handler.h= as_eiffel_error returns True, as it finds errors in</div> <div>the ISE standard libraries.</div><div><br> </div><div>I'm using ES 7.2 (Linux 64-bit), and the Gobo libraries that= it ships. Would I be better using git HEAD gobo? Or do I possibly just hav= e incorrect settings on the parser?</div><div><br></div><div>The errors tha= t it finds are:</div> <div><br><div>1 Syntax error:</div><div><div>Syntax error:</div><div>line 4= 0 column 39 in /home/colin/Eiffel72/library/base/elks/kernel/utf_converter.= e</div><div><br></div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 escape_character: CH= ARACTER_32 =3D '%/0xFFFD/'</div> <div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0^</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -- Unicode replacement character to = escape invalid UTF-8 or UTF-16 encoding.</div><div><br></div></div><div><br= ></div><div>quite a lot of GVKBU-1 errors. E.g.</div> <div><br></div><div><br></div><div><div>[GVKBU-1] class REAL_64_REF (78,2):= unknown built-in routine `positive_infinity' in class REAL_64_REF.</di= v><div><br></div><div>and quite a lot of VEEN-8 errors. E.g.</div><div> <br></div><div><div>[VEEN-8] class ARRAYED_LIST (761,10): `l_count' app= earing in feature `correct_mismatch' or one of its possibly nested inli= ne agents, is an object-test local that is used outside of its scope.</div> </div><div><div class=3D"h5"><div><br></div><br><div class=3D"gmail_quote">= On 17 February 2013 12:48, Eric Bezault <span dir=3D"ltr"><<a href=3D"ma= ilto:[email protected]" target=3D"_blank">[email protected]</a>></span= > wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div>On 2/16/2013 8:39 PM, Colin Adams wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Having parsed an ECF file to flat degree 3, how can I find which note<br> items are associated with a function?<br> </blockquote> <br></div> It's available in ET_FEATURE.first_indexing.<br> In order to make sure that it is populated by the parser,<br> you have to make sure that it uses an instance of<br> ET_DECORARED_AST_FACTORY, instead of a ET_AST_FACTORY:<br> <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 l_ast_factory: ET_DECORARED_AST_FACTORY<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 create l_ast_factory.make<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 l_system.set_ast_factory (l_ast_factory)<span><= font color=3D"#888888"><br> <br> -- <br> Eric Bezault<br> mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">ericb@goboso= ft.com</a><br> <a href=3D"http://www.gobosoft.com" target=3D"_blank">http://www.gobosoft.c= om</a><br> </font></span></blockquote></div><br></div></div></div></div> </blockquote></div><br></div> --20cf307f3a400aebc704d5eca011-- --===============4738399593089116332== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ --===============4738399593089116332== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gobo-eiffel-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop --===============4738399593089116332==--