Git Product home page Git Product logo

Comments (3)

certik avatar certik commented on June 13, 2024 1

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.

Thirumalai-Shaktivel avatar Thirumalai-Shaktivel commented on June 13, 2024 1

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.

Thirumalai-Shaktivel avatar Thirumalai-Shaktivel commented on June 13, 2024

I had two ideas:

  1. Convert ASR to AST and use ast_to_src() to print the Fortran Source code.
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.