• Products
  • Download
  • Purchase
  • Support
  • Company
Actipro Software company logo
Twitter Follow Actipro RSS Subscribe (RSS Feed)

The Actipro Blog

Tag Cloud

  • aero
  • blog
  • docking
  • editors
  • gauge
  • intelliprompt
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • winforms
  • wpf

Latest Twitter News

November 21, 2011 at 11:14 AM
#WPF Studio 2011.2 is out now! Includes enhanced themes for native WPF conrtols and new SyntaxEditor features. http://t.co/uEMCaGPG

September 26, 2011 at 1:25 PM
If you'd like to see our #WPF / #Silverlight SyntaxEditor code editor control ported to Metro, provide feedback here: http://t.co/xXBNIDTi

September 15, 2011 at 8:31 PM
If you want to see SyntaxEditor eventually show up in Win8's #xaml UI, be sure to add your support to this MS thread: http://t.co/FBjz6TuC

August 15, 2011 at 1:47 PM
New SyntaxEditor IntelliPrompt parameter info feature docs/samples ready for the 2011.2 #WPF and #Silverlight releases. http://t.co/ezoYIjv

August 2, 2011 at 2:40 PM
First look at new automated IntelliPrompt parameter info coming to our C#/VB editor control in #WPF / #Silverlight http://t.co/CUz6O1T

Twitter Follow us on Twitter

Month List

  • 2012
    • February (3)
    • January (2)
  • 2011
    • December (2)
    • November (7)
    • October (2)
    • September (1)
    • August (5)
    • July (3)
    • June (6)
    • May (5)
    • April (8)
    • March (4)
    • February (5)
    • January (9)
  • 2010
    • December (9)
    • November (10)
    • October (4)
    • September (8)
    • August (12)
    • July (9)
    • June (7)
    • May (6)
    • April (7)
    • March (6)
    • February (6)
    • January (4)
  • 2009
    • December (2)
    • November (2)
    • October (12)
    • September (3)
    • August (11)
    • July (10)
    • June (6)
    • May (3)
    • April (7)
    • March (6)
    • February (8)
    • January (10)
  • 2008
    • December (10)
    • November (2)
    • October (3)
    • September (5)
    • August (5)
    • July (8)
    • June (4)
    • May (4)
    • April (10)
    • March (8)
    • February (1)
    • January (2)

Category List

  • RSS feed for ActiproActipro (289)
  • RSS feed for Blog SummaryBlog Summary (13)
  • RSS feed for GeneralGeneral (34)
  • RSS feed for In developmentIn development (150)
  • RSS feed for New featuresNew features (140)
  • RSS feed for New productNew product (30)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (71)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (20)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WPFWPF (235)
  • RSS feed for XAMLXAML (23)

About Us

Actipro Software is a leading provider of .NET user interface controls for the WPF, Silverlight, and WinForms frameworks, and is most well-known for their SyntaxEditor syntax-highlighting code editor control.

Please take some time to learn more about us and our product offerings.

SyntaxEditor grammar/AST framework part 1: Overview

August 5, 2010 at 8:24 AM
by Bill Henning (Actipro)

Last month we did a posting called “What features do you want to see in WPF/Silverlight SyntaxEditor’s grammar and AST framework?” where we described some conceptual ideas we had for building the next-generation grammar and AST framework for our SyntaxEditor code editor control.  Before continuing on this post, you may wish to quickly review that.

Today’s post begins a multi-part walkthrough on what we’ve accomplished with the framework and shows how to use it.

We’ve been testing the framework with a WPF version of an advanced XML language implementation that has a grammar-based parser which constructs an AST of an XML document.  This was shown in the previous “Progress on a SyntaxEditor Web Languages Add-on for WPF and Silverlight” post.

Quick summary of grammar/AST

A grammar/AST framework is the key to enhancing a SyntaxEditor editing experience because it gives us meaningful information about what is contained in the document.  This not only can be used to provide contextual information to the end user (what method is the caret in), but is used to help drive features like automated IntelliPrompt completion lists, parameter info, and quick info.

To quickly sum up, a grammar is a set of parsing rules defined via EBNF for how to derive structure from text.  In the case of SyntaxEditor usage, the text being examined is nearly always programming code.  When running a grammar-based parser on text, one output is typically an AST (abstract syntax tree).  Another output is a collection of parsing errors.  Other custom output can be created as well.

For example, if we define a grammar for Javascript, an end user should be able to load up a Javascript document in SyntaxEditor and our syntax language will have access to the document’s AST and errors collection.  Then with some additional coding, the syntax language can use information from the AST to provide automated IntelliPrompt for the end user.

What this multi-part walkthrough will cover

We’ll be doing multiple posts over the coming days that walk through the design of our new grammar/AST model.  We’ll step through and build a grammar for our “Simple” language that is like a slimmed down version of Javascript.

We’ll also show a preview of the grammar debugger we’re working on that we hope can be included in a future release of the Language Designer.

Here’s a list of the posts that will be part of this walkthrough series:

  • Part 1: Overview
  • Part 2: Introduction to symbols and EBNF terms
  • Part 3: Creating a grammar for the Simple language
  • Part 4: Introduction to customizing tree construction
  • Part 5: Optimizing the Simple grammar’s AST output
  • Part 6: Introduction to callbacks and error handling
  • Part 7: Adding error handling to the Simple grammar
  • Part 8: Grammar debugger preview

We’ll dig into everything starting with the next post.  Stay tuned!

Tags: wpf, silverlight, syntaxeditor
Filed under: Actipro, In development, WPF, Silverlight
Submit to DotNetKicks...
Permalink | Comments (2)

Related posts

SyntaxEditor grammar/AST framework part 3: Creating a grammar for the Simple languageIn the previous post we gave a detailed introduction to symbols, EBNF terms, and how you can transla...SyntaxEditor grammar/AST framework part 5: Optimizing the Simple grammar’s AST outputIn the previous post we gave an introduction to the powerful tree construction mechanism that is bui...SyntaxEditor grammar/AST framework part 7: Adding error handling to the Simple grammarIn the previous post, we saw how the grammar framework supports callbacks nearly everywhere in the E...

Comments

August 20, 2010 at 09:27  

pingback

Pingback from topsy.com

Twitter Trackbacks for
        
        SyntaxEditor grammar/AST framework part 1: Overview
        [actiprosoftware.com]
        on Topsy.com

topsy.com

August 27, 2010 at 01:40  

trackback

FeedBurner blog post RSS feed issue fixed

FeedBurner blog post RSS feed issue fixed

The Actipro Blog - WPF and WinForms Development

Comments are closed
Copyright © 1999-2012 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us