克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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.
MIT License Copyright (c) 2019 Irony Project (https://github.com/IronyProject) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化