I came across the following yacc F77 grammar: http://yaxx.cvs.sourceforge.net/viewvc/yaxx/yaxx/fortran/fortran.y?revision=1.3&view=markup .
How can I make a parser from Fortran 77 from this file using Happy ?
Why is there C? / C ++? the code in this .y file?
UPDATE: Thanks for your answers!
I played with two new approaches for a while:
I have both to parse a simple code excerpt already. I will keep people informed if anything useful arises in this century. ^ Hehe.
P / S: I want to see if I can gather enough momentum myself to initiate a project for the automatic differentiation mechanism, to replace only the binary code that we currently depend on. For fun in the early stages: I'm watching Love Shuffle ! This is a very nice J-Drama! Highly recommended ...
BNFC ! BNFC , , .
C - . C, Bison/Yacc, C.
Happy, BNF Happy definition Haskell.
- .
, (: , , , , - )
, , - , Yacc, , , . , , yyerror yylval .
, yyerror/yylval, / . , . , , .
You will need an AST for the assembly, which can be constructed equivalently to the C fragments in the Yacc file.
Source: https://habr.com/ru/post/1711073/More articles:NHibernate maps xml data to database - nhibernateHow to get path to project output classes in eclipse plugin - eclipseКак вернуть набор строк из С# в С++ через COM-взаимодействие - c++Компиляция/соответствие регулярных выражений POSIX в C - cDoctype and browser speed - htmlBing and how does he work under it? - architectureUsing Spring Security plugin with Grails without domain model - springIs there Citrix online testing? - citrixSaving a file using Javascript in S60v3 mobile browser - javascriptЗахват нажатия клавиш для формы, но не для элементов управления - .netAll Articles