Skip to content

Introduce a common syntactic subset between cppo and bucklescript #69

Open
@bobzhang

Description

@bobzhang

Related issue rescript-lang/rescript#3820

BuckleScript added a primitive conditional compilation support in the ocaml compiler codebase. We can not use cppo there since it would make the patches to ocaml codebase more intrusive(including changes to the build script). Since it is a patch to the ocaml lexer, it is small and minimal so we don't have too much complexity budget as cppo.

I am wondering if we can work together to tweak the syntax to make a minimal common subset to achieve code reuse.

The syntax is documented here https://bucklescript.github.io/docs/en/conditional-compilation#docsNav

cc @ELLIOTTCABLE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions