Giter Site home page Giter Site logo

chrisking94 / irony Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ironyproject/irony

0.0 1.0 0.0 2.23 MB

Irony — .NET Language Implementation Kit

Home Page: https://www.nuget.org/packages/Irony

License: MIT License

C# 94.67% Visual Basic 0.07% Java 2.46% Python 0.17% Scheme 0.10% Smalltalk 2.34% Batchfile 0.07% PowerShell 0.12%

irony's Introduction

Irony — .NET Language Implementation Kit

https://github.com/IronyProject/Irony

appveyor tests nuget

Prerequisites

  • OS: Windows 7;
  • Visual Studio 2017, .NET Framework 4.0, 4.5 or .NET Standard 2.0

Demo instructions

To run Grammar Explorer

  • Open Irony.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 \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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.