Git Product home page Git Product logo

compiler's People

Contributors

andrewkyu avatar johntumath avatar jpan127 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

compiler's Issues

Get ride of code reptition in every visit function

Find a clean way to have all functions call print_debug_context + return check by default.

Possibly have class Pcl2VisitorDerived which overrides all of class Pcl2Visitor with these by default. Then every function can call Pcl2VisitorDerived::current_function.

Need to experiment.

Indent system would be nice

Once JasminEmitter is integrated, it can synergize with the symbol table stack's current nesting level to determine the appropriate indentation level.

Rewrite wci modules

Key Differences

  • Use less obfuscated namespaces
  • Get rid of abstract base classes that will never be derived more than once
  • Removed unnecessary Predefined class
  • Remove ICodeNode
  • Keep CrossReferencer and ParseTreePrinter but remove it from usage, to be rewritten later
  • Replace DataValue with ConstObject
  • Rewrite everything else with clarity, less memory usage, shared pointers, and more references

Do not integrate yet.

Modularize visitor parser rules + commonize code

Lots of parser rules have extremely similar functionality when visiting. By grouping them together and having them call a common function (when and if appropriate) can drastically reduce the code size and repetition.

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.