Coder Social home page Coder Social logo

compiler's People

Contributors

hhosu107 avatar xdoju avatar

Stargazers

 avatar

Watchers

 avatar  avatar

compiler's Issues

안전성 확인 및 EOF 처리

quote 스캔 부분을 지금 보니 peek 없이 곧바로 GetChar 를 가져다 쓰는 게 꺼림칙한데, EOF 인식 같은 게 어떻게 되는 건지 정확히 몰라서 명확하게 수정을 못 하겠음. 이렇게 해도 괜찮은가?

and 지금 상태로는 스캔 도중에 EOF를 만나면
ex. 'abcd
출력값에 EOF 값(-1) 이 들어가서 이상한 문자가 같이 나옴. 위의 문제를 잘 해결하면 이 부분도 해결이 될 거 같은데(= t에 EOF가 들어갈 일이 없을 거 같은데) 생각해 보기.

divider 변수 제거

/ 가 들어왔을 때 나눗셈인지 주석인지 체크하려고 만든 변수 같은데 쓸모가 없어졌으므로 지우기

escape 함수 개선

escape 함수는 몇몇 문자를 출력할 수 있는 형태로 고쳐 주는 함수인데, 종료 조건이 '\0' 으로 되어 있어서 \0 이후에도 문자열이 지속될 경우 출력을 못 함.

ex. "abcd\\\\\n\n\0\\\\"

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.