issues
search
aoisupersix
/
bve5_parser_ts
1
stars
0
forks
source link
SyntaxNodeの自動生成
#4
Open
aoisupersix
opened
5 years ago
aoisupersix
commented
5 years ago
B5Gで生成する。
構文の引数はデコレータで定義し、reflect-metadataで構文が取りうる引数をreflect-metadataでメタデータに記録する。
CSTからASTへの変換処理は、出来ればメタデータとObject.getOwnProperties等を駆使してやりたい。もしできなかったらvisitorに手動で書くしか無いかな、、
aoisupersix
commented
4 years ago
方針:
B5Gで各構文のBaseNodeを自動生成する
BaseNodeを継承したNodeをASTとして使う
上記のNodeもテンプレートはB5Gで生成して、必要に応じてカスタマイズする
B5Gで生成する。