Giter Site home page Giter Site logo

folio's Introduction

folio ๐Ÿ“–

Github Actions

overview

folio provides a fast, simple abstraction and work-in-progress compiler for the FVM (Financial Virtual Machine).

features

  • lexical analysis
  • parsing
  • basic code generation and bytecode output
  • finalize code generation, and ensure parity with FVM.ts

compiler

example usage of the folio compiler can be found within the /examples folder.

structure

  • crates
    • cli -> command line interface
    • compiler
      • assembler.rs -> defines the parser
      • codegen.rs -> code generation module
      • opcode/rs -> defines a set of FVM primitive types
      • token.rs -> lexical analysis and token definition

contact

folio's People

Contributors

ts0yu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

folio's Issues

simplify parsing

we need a more robust way of parsing macros than currently - reference huffc

compilation context

similar to rustc, we need some sort of Context struct that lets us pass around details of the current compilation run.

this will be used for:

  • errors
  • benchmarking
  • more verbose compiler information

allow macros to be invoked from within macros

Currently, a macro can only be called from within the main macro. We should allow macros to be called from any macro, not just main.

this could be done by passing over the main macro body until there are no more identifiers.

this is low priority

add span to token

this links with error issue, if we include spans in the token structure we can create better user errors

error handling

user should be able to see nice cli errors when something goes wrong.

consider using similar format to rustc

verify hex literal

hex literals currently can be any length so we need to ensure they are the correct length of an address

encode assembled program

encode the assembled opcodes. reference FVMLib.sol. this depends on the opcodes parameter issue

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.