hhosu107 / compiler Goto Github PK
View Code? Open in Web Editor NEWTo Do Compiler Project
License: MIT License
To Do Compiler Project
License: MIT License
quote 스캔 부분을 지금 보니 peek 없이 곧바로 GetChar 를 가져다 쓰는 게 꺼림칙한데, EOF 인식 같은 게 어떻게 되는 건지 정확히 몰라서 명확하게 수정을 못 하겠음. 이렇게 해도 괜찮은가?
and 지금 상태로는 스캔 도중에 EOF를 만나면
ex. 'abcd
출력값에 EOF 값(-1) 이 들어가서 이상한 문자가 같이 나옴. 위의 문제를 잘 해결하면 이 부분도 해결이 될 거 같은데(= t에 EOF가 들어갈 일이 없을 거 같은데) 생각해 보기.
/ 가 들어왔을 때 나눗셈인지 주석인지 체크하려고 만든 변수 같은데 쓸모가 없어졌으므로 지우기
escape 함수는 몇몇 문자를 출력할 수 있는 형태로 고쳐 주는 함수인데, 종료 조건이 '\0' 으로 되어 있어서 \0 이후에도 문자열이 지속될 경우 출력을 못 함.
ex. "abcd\\\\\n\n\0\\\\"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.