<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Commentary on Parsing Languages for IDEs</title>
	<atom:link href="http://blog.280z28.org/archives/2010/01/92/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.280z28.org/archives/2010/01/92/</link>
	<description>Because it&#039;s easier than editing the HTML by hand.</description>
	<lastBuildDate>Wed, 05 Oct 2011 19:39:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: vincenth_net</title>
		<link>http://blog.280z28.org/archives/2010/01/92/comment-page-1/#comment-16570</link>
		<dc:creator>vincenth_net</dc:creator>
		<pubDate>Tue, 31 Aug 2010 08:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.280z28.org/archives/2010/01/92/#comment-16570</guid>
		<description>&lt;p&gt;Hi Sam, I&#039;m working on simple textual domain specific languages with intellisense in the VS2010 editor (via MEF) with Antlr (I switched from SQL Server Modeling services due to its CTP license). Could help me with some advice?&lt;/p&gt;

&lt;p&gt;I may implement this in http://solutionsfactory.macaw.nl/ , and I&#039;m looking for good strategies to implement intellisense autocomplete, syntax highlighting and error squiggles.&lt;/p&gt;

&lt;p&gt;I&#039;m focusing on designing simple, small languages that require only a simple (combined) antlr grammar for the purpose of generating output (PowerShell statements). These are not C like languages but very simple, only containing a handful of statements, identifiers, literals, and lists and tables of values.&lt;/p&gt;

&lt;p&gt;After reading your posts, the Antlr books, and playing around with Antlr and VS2010 Editor extensibility, I have these questions:&lt;/p&gt;

&lt;p&gt;1) How would you implement syntax coloring and autocomplete from a simple, combined grammar (output=template) instead of a tree grammar? Is using an AST grammar only needed for performance or is it also the simplest way to get both intellisense and translation? My languages are very simple and do not require an AST for translation to output. I would rather have one grammar than two grammars for a language, as long as that will not make the combined grammar too hard to read.&lt;/p&gt;

&lt;p&gt;2) How do you structure your grammar for incomplete/invalid input? Do you create two grammars, one for syntax coloring and autcomplete that handles incomplete, invalid input, and one for validation &amp; translation that requires complete, valid input? Or would you introduce some sort of &#039;mode&#039; parameter for the parser rules to indicate how strict they should be? I want to keep my grammars as uncomplicated as possible.&lt;/p&gt;

&lt;p&gt;PS You have not been posting here for a long time, have you been working on VS2010 - Antlr integration after Jan 2010? I&#039;d really like to see more posts on this, working code for Antlr - VS2010 MEF integration with intellisense &#039;done right&#039; would be great.&lt;/p&gt;

&lt;p&gt;Thx for any help you may be able to offer.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Sam, I&#8217;m working on simple textual domain specific languages with intellisense in the VS2010 editor (via MEF) with Antlr (I switched from SQL Server Modeling services due to its CTP license). Could help me with some advice?</p>

<p>I may implement this in <a href="http://solutionsfactory.macaw.nl/" rel="nofollow">http://solutionsfactory.macaw.nl/</a> , and I&#8217;m looking for good strategies to implement intellisense autocomplete, syntax highlighting and error squiggles.</p>

<p>I&#8217;m focusing on designing simple, small languages that require only a simple (combined) antlr grammar for the purpose of generating output (PowerShell statements). These are not C like languages but very simple, only containing a handful of statements, identifiers, literals, and lists and tables of values.</p>

<p>After reading your posts, the Antlr books, and playing around with Antlr and VS2010 Editor extensibility, I have these questions:</p>

<p>1) How would you implement syntax coloring and autocomplete from a simple, combined grammar (output=template) instead of a tree grammar? Is using an AST grammar only needed for performance or is it also the simplest way to get both intellisense and translation? My languages are very simple and do not require an AST for translation to output. I would rather have one grammar than two grammars for a language, as long as that will not make the combined grammar too hard to read.</p>

<p>2) How do you structure your grammar for incomplete/invalid input? Do you create two grammars, one for syntax coloring and autcomplete that handles incomplete, invalid input, and one for validation &amp; translation that requires complete, valid input? Or would you introduce some sort of &#8216;mode&#8217; parameter for the parser rules to indicate how strict they should be? I want to keep my grammars as uncomplicated as possible.</p>

<p>PS You have not been posting here for a long time, have you been working on VS2010 &#8211; Antlr integration after Jan 2010? I&#8217;d really like to see more posts on this, working code for Antlr &#8211; VS2010 MEF integration with intellisense &#8216;done right&#8217; would be great.</p>

<p>Thx for any help you may be able to offer.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: CapitalR</title>
		<link>http://blog.280z28.org/archives/2010/01/92/comment-page-1/#comment-12652</link>
		<dc:creator>CapitalR</dc:creator>
		<pubDate>Sat, 30 Jan 2010 21:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.280z28.org/archives/2010/01/92/#comment-12652</guid>
		<description>&lt;p&gt;Thanks for yet another great article Sam.  Do you have any suggestions or advice for someone looking to design a code model for a new VS language (as a 3rd party extension)?  I&#039;m using ANTLR to do lexing and parsing, but I&#039;m still trying to figure out the best way to design the AST such that I can perform reparses quickly when the text in the editor is changed (and only reparse what I need to).  I&#039;m only just now digging into the VS2010 documentation to see if they have automated tools and services that can help keep my AST up to date as the text changes.  Thanks in advance for any comments you might have, and I look forward to more of your great articles on Visual Studio extensibility and ANTLR.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for yet another great article Sam.  Do you have any suggestions or advice for someone looking to design a code model for a new VS language (as a 3rd party extension)?  I&#8217;m using ANTLR to do lexing and parsing, but I&#8217;m still trying to figure out the best way to design the AST such that I can perform reparses quickly when the text in the editor is changed (and only reparse what I need to).  I&#8217;m only just now digging into the VS2010 documentation to see if they have automated tools and services that can help keep my AST up to date as the text changes.  Thanks in advance for any comments you might have, and I look forward to more of your great articles on Visual Studio extensibility and ANTLR.</p>]]></content:encoded>
	</item>
</channel>
</rss>

