Git Product home page Git Product logo

ya-lang's Introduction

LioQing

Hi, I like programming and graphics design.


My Commonly Used Languages

Top Langs


Some Other Languages/IDEs/Tools I've Used

ya-lang's People

Contributors

lioqing avatar

Watchers

 avatar

ya-lang's Issues

Optimize `BinOp` and `OpInfo`

Currently semantic_parser::Env::get_bin_op_prec takes a &BinOp and returns a Result<&OpInfo, Error>. This requires the user of the function to allocate and clone uncessary variables for the argument &BinOp.

Suggestion: Optimize it with a trait with getters for the fields of BinOp instead, so the function takes any class that implements the trait.

Rework syntax_parser to handle error properly

The current syntax parser returns the first encountered error in each global item. So in each parse, it will only show the first encountered error for each global item, all the tokens in the same item after that are deteced as syntax_parser::Error::UnknownTokenInGlobalScope.

The error handling of syntax parser should be changed so that it tries not to stop the entire parsing of the global item due to one single error.

I haven't come up with any specific design to do this yet. But storing a Vec<Error> in each Expr may be a solution, similar to the semantic_parser, but the implementation would be different, as syntax_parser has to attempt to continue parsing by assuming the errror didn't occur.

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.