package p.studio.compiler;

import p.studio.compiler.models.FrontendSpec;
import p.studio.compiler.models.FrontendSemanticPresentationSpec;
import p.studio.compiler.pbs.PbsSemanticKind;
import p.studio.utilities.structures.ReadOnlySet;

import java.util.List;

public class PBSDefinitions {
    public static final FrontendSpec PBS = FrontendSpec
            .builder()
            .languageId("pbs")
            .allowedExtensions(ReadOnlySet.from("pbs", "barrel"))
            .sourceRoots(ReadOnlySet.from("src"))
            .stdlibVersions(List.of(FrontendSpec.Stdlib.asDefault(1)))
            .semanticPresentation(new FrontendSemanticPresentationSpec(
                    PbsSemanticKind.semanticKeys(),
                    List.of("/themes/pbs/semantic-highlighting.css")))
            .build();
}
