Code Review

pkl - programming language for configuration

RabbitOnEarth 2024. 2. 13. 23:55

Apple에서 pkl (발음 pickle) 을 공개했다.

 

java로 core부분이 작성된것으로 보이고 왜 java로 했나 했더니 parser generator인 antlr 를 활용하기 위해서였던거 같다.

 

간단히 parser 부분만 살펴보면 antlr parser generator에 의해 생성된 Pkllexer, PklParser class를 활용해주는 부분이 다다.

 

 

github repo

 

GitHub - apple/pkl: A configuration as code language with rich validation and tooling.

A configuration as code language with rich validation and tooling. - apple/pkl

github.com

 

 

소개 블로그 포스팅

 

 

Introducing Pkl, a programming language for configuration :: Pkl Docs

We created Pkl to have a familiar syntax to developers, and to be easy to learn. That is why we’ve included features like classes, functions, loops, and type annotations. For example, here is a Pkl file (module) that defines a configuration schema for an

pkl-lang.org