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

[evaluator] 다른 파일의 심볼을 읽을수 있도록 개선 #28

Closed yus1108 closed 3 months ago

yus1108 commented 3 months ago

예제 파일1 enum_header.hmcf :

enum TEST_ENUM: uint8
{
    TEST_VALUE1
};

예제 파일2 main.mcf :

#include <builtins> // include vector, string, print
void main(unused const int32 argc, unused const utf8 argv[][]) 
{
    const TEST_ENUM testVal = TEST_ENUM ::TEST_VALUE1;
}
yus1108 commented 3 months ago

다른 파일의 명령문도 저장하여 읽을수 있도록 개선 필요