Codons un compilateur suite...

ParserLexerLanguage
Pierrick Gourlain - 10/14/2018, 9:40:24 AM0 commentaire

En plus de la vidéo https://www.youtube.com/watch?v=wgHIkdUQbp0, vous pouvez utiliser un framework/outils pour écrire votre Lexer/Parser, et toujours en C#


Ce framework c' est "Irony" : (https://github.com/IronyProject/Irony)



Il permet d'écrire de nouveau langage, le tout en C#. Le Lexeur, le parseur et l'interpreteur peuvent être écrit en C#. Irony vous évite d'écrire tout le code de transformation de votre en langage dans un arbre de syntaxe pour l'interpreter ou générer dans un autre format.


Il existe de nombreux exemples d'utilisation, et même un parser [SQL](https://github.com/IronyProject/Irony/blob/master/Irony.Samples/SQL/SqlGrammar.cs)



Le projet :

Github : https://github.com/IronyProject/

Wiki : https://en.wikibooks.org/wiki/Irony_-_Language_Implementation_Kit/Introduction



Autres resources :

JSBASIC : https://www.codeproject.com/Articles/25069/JSBasic-A-BASIC-to-JavaScript-Compiler


Irony and Runsharp : https://www.slideshare.net/zamescurran/build-a-compilern)


Domain Specific Language : https://www.codeproject.com/articles/36629/www-dsl-using-irony-part


FullTextSearch : https://books.google.fr/books?id=4PY-dxY3AEAC&pg=PA88&lpg=PA88&dq=Irony+.Net&source=bl&ots=cAAhFMW43H&sig=ErnHU4ix6La1Lzgg9Gle9kgAhwY&hl=fr&sa=X&ved=2ahUKEwiNyKPptffdAhUBzIUKHQo3Adw4ChDoATADegQIBhAB#v=onepage&q=Irony%20.Net&f=false



Commentaires :

Aucun commentaires pour le moment


Laissez un commentaire :

Réalisé par
Expaceo