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

The Actipro Blog

Tag Cloud

  • blog
  • docking
  • editors
  • intelliprompt
  • micro charts
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • web site
  • winforms
  • winrt
  • wpf

Latest Twitter News

May 14, 2012 at 2:50 PM
IntelliPrompt code snippet features have been added to our VS-like code editor control for #WPF and #Silverlight. http://t.co/1IchOJrr

May 10, 2012 at 9:40 PM
Our new Micro Charts control products for #WPF and #Silverlight are out now. Come build some dashboards with them! http://t.co/EEERvff0

May 7, 2012 at 6:47 AM
Today we look at bar charts, for our upcoming #WPF, #Silverlight, and #WinRT Micro Charts product. http://t.co/gxHuPS6B

May 4, 2012 at 6:25 AM
See a gallery of micro area charts in our upcoming release for #WPF, #Silverlight, and #WinRT. http://t.co/qDXGwW8B

May 3, 2012 at 6:32 AM
See a variety of line charts that are easy to make with our upcoming #WPF, #Silverlight, #WinRT Micro Charts product. http://t.co/mbkX6tJd

Twitter Follow us on Twitter

Month List

  • 2012
    • May (9)
    • April (6)
    • March (11)
    • February (11)
    • 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 (321)
  • RSS feed for Blog SummaryBlog Summary (15)
  • RSS feed for GeneralGeneral (43)
  • RSS feed for In developmentIn development (164)
  • RSS feed for New featuresNew features (155)
  • RSS feed for New productNew product (38)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (90)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (22)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WinRTWinRT (9)
  • RSS feed for WPFWPF (257)
  • 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 .NET Languages Add-on for WPF Progress - Part 2

December 22, 2010 at 6:02 AM
by Bill Henning (Actipro)

PostBannerWPFStudioDevNotes32

ProductHeadingWPFSyntaxEditor3

Today I’d like to post a status update on the progress of the SyntaxEditor .NET Languages Add-on for WPF.  For more information on the add-on’s development, please see the previous posts in this series:

  • SyntaxEditor .NET Languages Add-on for WPF Progress
  • WPF development - .NET Languages Add-on and Docking/MDI MVVM

We’ve continued working on the C# grammar implementation that uses our LL(*) Parser Framework. 

C# Grammar

We’ve completed the C# grammar, which can parse C# 4.0 and earlier files.  It generates a full abstract syntax tree (AST) with type-specific nodes for each kind of node.

Currently there are 118 distinct classes defined for .NET AST nodes, most of which will be used in the VB grammar as well that we’ll be starting on shortly.  The AST nodes are all code generated using new features in our Language Designer application.

C# Intelligent Parse Error Reporting

We’ve spent a lot of extra time on the C# grammar to ensure that it provides intelligent parse errors as you type.  Let’s see some examples.

CSharp1

Above we are typing a class declaration.  A parse error tells us we’re missing a { character.

This screenshot also shows the ability for a parse error to render a squiggle at the document end, something that hasn’t yet been possible in SyntaxEditor, but has been added for 2011.1.

CSharp2

Here we’ve added a method and have it returning an expression.  The expression is an equality expression but we’re missing the right half of the text expression.  A parse error tells us that we need to input an expression at that location.

CSharp3

Finally above we have a LINQ query expression that is incomplete.  A parse error tells us that we need a select or group clause next.

These sorts of helpful parse errors are pervasive throughout the entire C# grammar and will certainly be helpful to end users.

C# Automatic Outlining

You might have also noticed above that we have automatic outlining now working for type declarations, member declarations, and a couple other areas.

C# Grammar Unit Tests

We’re currently in the midst of compiling a complete set of unit tests that will test the entire C# grammar and warn us if our AST output doesn’t match what we expect.

This will allow us to make changes in the future and ensure that the AST output remains correct.

VB Grammar Next

Work on the Visual Basic 10 grammar will begin shortly.  So far, we appear to be on target for a WPF Studio 2011.1 release in late January to early February that will include these features, along with a number of other enhancements and new controls in other WPF products.

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

Related posts

SyntaxEditor .NET Languages Add-on for WPF Progress There has been a lot of customer interest in when the SyntaxEditor .NET Languages Add-on for WPF...Progress on a SyntaxEditor Web Languages Add-on for WPF and SilverlightAs mentioned in a previous post we have been working very hard on developing a custom grammar and AS...SyntaxEditor .NET Languages Add-on 2011.1 Progress Visual Basic Grammar We’ve made great progress on the Visual Basic grammar over the past couple w...

Comments

December 23, 2010 at 01:46  

Jesper

About time.

Jesper Sweden

December 23, 2010 at 02:31  

Jesper

(Which doesn't mean "not awesome", I should say.)

Jesper Sweden

December 29, 2010 at 05:59  

Mike Strobel

Very cool!  I also like that you can choose your root non-terminal.

Mike Strobel United States

January 3, 2011 at 02:16  

trackback

Actipro Blog 2010 Q4 posting summary

Actipro Blog 2010 Q4 posting summary

The Actipro Blog - WPF, Silverlight, and WinForms Development

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