Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Git repository of the Irony project
C# Java Other
branch: master
Failed to load latest commit information.
Irony.GrammarExplorer Revert "Pushed all remaining changes from CodePlex to GitHub."
Irony.Samples.Console
Irony.Samples Revert "Pushed all remaining changes from CodePlex to GitHub."
Irony.Tests Revert "Pushed all remaining changes from CodePlex to GitHub."
Irony Revert "Pushed all remaining changes from CodePlex to GitHub."
Irony_All.2008.sln Minor fixes; NUnit support; preparing for VS 2010; Silverlight projec…
Irony_All.2010.sln Cleaning up after conversion to Mercurial
Irony_All.2010.vssscc Added VS 2010 version of all projects and solution
Irony_All.sln FreeTextLiteral and FallbackTerminals -related fixes. A newly
License.txt Syntax highlighting in editors - first draft implementation
ReadMe.txt

ReadMe.txt

ReadMe file for Irony project
http://www.codeplex.com/irony

Prerequisites
  OS: Windows XP, Vista or Windows 7; 
  Visual Studio 2008, .NET Framework 3.5
  
Demo instructions
To run Grammar Explorer
* Open Irony_All.sln solution file in Visual Studio.
* Right-click on the project "030.Irony.GrammarExplorer" and select "Set as StartUp project" from context menu.
* Click Run button on toolbar (F5). Grammar Explorer Window opens.
* !!!Important: if you are launching the Grammar Explorer for the first time after downloading Irony and 
    if you see that Grammars combobox is not empty, then make sure you clear it: click the button 
    next to the combobox and select "Remove all"
* If Grammars combobox on top is empty, click on the button next to it (or right-click the combobox) and select 
   "Add grammar" command. In the file-open window that appears, navigate to (root)\Irony.Samples\bin\debug folder and 
   select Irony.Samples.dll. Application will popup a small window with a list of grammars in selected assembly. 
   Leave all lines checked and click "OK". The newly added grammars will appear in the grammar combobox.  
* Select grammar/language in top combo-box.
* Browse form tabs to see grammar data. 
* To parse source code sample, switch to "Test" tab. Click "Load..." button on top of the form. Open file dialog opens.
* Navigate to <root>\Irony.Samples\SourceSamples folder. Select source file appropriate for the selected grammar. 
* Source file contents are loaded in the text area in the form. Click Parse button to parse the sample. 
* The Parse Tree control on the right will show the parse tree for the sample.
* If the button "Run" enabled, click it to execute/evaluate the code. The results are shown in the Output window at the bottom of the form.
  For Expression Evaluator grammar, the output is the result of the last expression or assignment. Interpreter for Scheme
  can execute more complex programs found in SourceSamples\Scheme subfolder.  
* Alternatively you can paste or type your own sample program into source text area. 
* Repeat for other selections in the Grammar combobox.
* Grammar Explorer restores your last language selection and source sample after you close/restart the form. 

Note about Silverlight:
IronySilverlight project in the solution is a version of Irony for use in Silverlight environment. 
This project shares almost all sources files with core Irony project. It has a conditonal symbol SILVERLIGHT defined
and uses it in a few places to select different code pieces for different environments. 
The output assembly name is IronySL.dll. By default this project is not compiled when you build the solution -
so it does not break your build if you don't have SL files on your computer. 
To compile this project you must have Silverlight 3 Tools installed: 
(http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en)
Credit for Irony-SL adaptation goes to Kirill Osenkov
 
  
Something went wrong with that request. Please try again.