yus1108 / mcf

This is a toy compiler project named as mcf (making compiler is fun) aiming to make a compiler specialized for game development.
MIT License
1 stars 0 forks source link

[렉서] decimal 토큰 생성 구현 #9

Open yus1108 opened 2 months ago

yus1108 commented 2 months ago

decimal 토큰을 생성 가능하게 개선 필요 예:

  1. 0.1 -> double fixed
  2. 0.1f -> fixed

부동 소수점 용 literal 은 부동 소수점 타입이 빌트인으로 구현 되느냐에 따라 구현 예정 구현 시:

  1. 0.1fl -> float
  2. 0.2 dfl -> double float