Comments (3)
Yes, as we discussed, we should go with 2., since it will also be easier to write and maintain, similar to the C backend, but even simpler, since ASR maps better to Fortran.
from lfortran.
TODO
- Visit symbols in Module symtab
- Create a separate function or macro to visit symbols in symtab and handling body for the Nodes like Function, Module, ...
- Handle precedence in Binop and Compare
- Use an enum instead of number in precedence
- Add Fortran to all the tests in the integration_tests CMakeLists (this would fix all the above)
- Add compiler options to decide how some features should be generated (such as generics: either as the extended Fortran keeping all semantics but not possible to compile with gfortran, or lowered to standard fortran, thus losing semantics, but being able to compile with gfortran)
- Add color to the source code (this is low priority, we don't have color in the C backend and perhaps we don't need it --- let's revisit this after all of the above points are fixed and the backend is done)
from lfortran.
I had two ideas:
- Convert
ASR to AST
and useast_to_src()
to print the Fortran Source code. - Convert ASR directly to source code.
I lean more towards option 2, as it can be used by other frontends as well.
from lfortran.
Related Issues (20)
- Run_time error: SetConsoleMode() failed HOT 4
- Printing of strings prints an extra space
- `real_kinds(i)` from `iso_fortran_env` fails HOT 1
- build breaks when CXXFLAGS contain white spaces
- Does LFortran Support the CONTIGUOUS Attribute? HOT 3
- Out-of-source build from git code is broken
- Some tests fails on non-standard arch HOT 4
- semantic error: The LHS character len=1 and the RHS character len=0 are not equal. HOT 1
- Style suggestions cannot be disable HOT 6
- Fortran's INCLUDE appears to be mishandled HOT 2
- Fortran's EXTERNAL statement is ignored.
- Possible alternative syntax for {}
- Update travel example at dev.lfortran.org HOT 2
- Update travel example
- Generics: better error message for a missing requirement
- Cosine similarity benchmark
- segfault in string handling
- LLVM verify fails for string arrays HOT 2
- Implement quadruple precision
- Compiling stdlib special functions HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lfortran.