NaiveLanguageTools Icon

NaiveLanguageTools

C# lexer and parser

Add a Review
1 Download (This Week)
Last Update:
Download NaiveLanguageTools-2016-06-26.rar
Browse All Files

Description

NLT is free, open-source C# lexer and GLR parser suite -- which translates to ability to parse ambiguous grammars. Grammar can be defined directly in code or (preferably) in separate file (lex/yacc-like) for included generator.

If you understand/guess the meaning of grammar in C#:

// scanning
lexer.AddStringRule(")", match => SymbolEnum.RPAREN);
// parsing
prod_builder.AddProduction(SymbolEnum.exp,
SymbolEnum.LPAREN, SymbolEnum.exp, SymbolEnum.RPAREN,
(_1, e, _3) => (AstNode)e);

or grammar in NLT format:

// scanning
/[A-Za-z_][A-Za-z_0-9]*/ -> IDENTIFIER, IdentifierSymbol.Create($text);
// parsing
program -> list:namespace_list
{ new Program(currCoords(), (Namespaces)list) };

you should be able to use it :-).

There is Example project included which serves as tutorial.

NaiveLanguageTools Web Site

Categories

Compilers, Interpreters

License

MIT License

Features

  • parser
  • lexer
  • C#
  • generator

KEEP ME UPDATED

Write a Review

User Reviews

Be the first to post a review of NaiveLanguageTools!

Additional Project Details

Languages

English

Intended Audience

Developers

Programming Language

C#

Registered

2013-05-27

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks