Giter Club home page Giter Club logo

toycompile's Introduction

Hi there 👋

✨ Welcome to my page! 🥳

I'm GTY,
Currently a senior student in Tongji University, Majored in Computer Science.

🐣 Favorite Languages

Most favorites: Kotlin java C C++ ts

Currently learning: rust

Also: python

🔧 Favorite Frameworks

Mobile: android

Frontend: react WeChat MiniProgram

Backend: sb

💿 Favorite OS

Daily: win

Development: archlinux

Console: ubuntu

Production Server: ubuntu

👨‍💻 GitHub Activities

Social Media

小红书:枫云树

CSDN:枫铃树

Hits

toycompile's People

Contributors

flowerblackg avatar vozeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vozeo

toycompile's Issues

C99文法关于 if 语句的描述是有二义性的。ToyCompile LR1 分析器未对该情况做特殊处理。

C99文法关于 if 语句的描述是有二义性的。ToyCompile LR1 分析器未对该情况做特殊处理。

例如:

if (a)
    if (b)
        c
    else
        d

上方代码的 else,如果按照“移进”规则,会被判定为附属于第二个 if。这种理解是正确的。

但是,如果按照“归约”规则,else 会被分配给第一个 if,这是错误的。

文法分析过程,有两个项目会产生移进归约冲突。恰好产生“移进”命令的语句在后面,覆盖掉前面的指令,使得问题没有暴露。

应该采用一定手段处理这个问题,而不是依赖幸运的语句产生顺序。

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.