Hi, I am working on a little domain specific language and had written a parser with Menhir that delivers an AST. The language has the concept “predicate” that is very similar to a ocaml class so I would like to use ocaml class to represent it. Predicates must be instantiate by events, in fact the type of event will define the type of class. Event types are defined inside of predicates, is this possible? I mean, the type of class that will be instantiated can be defined by some ocaml code?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Why my subclass(inheritance) cannot be passed to a function requiring its super class? | 2 | 745 | January 3, 2022 | |
OCaml meetup in SF on Tuesday 3/26 | 0 | 883 | March 25, 2019 | |
Day of the Camel 2023: OCaml in Academia and Industry (online, 20 July 2023) | 6 | 1278 | August 16, 2023 | |
[NEW PART] Pragmatic Category Theory: Part 2 published! | 6 | 1123 | September 22, 2024 | |
OCaml Café: Thu, Feb 11 @ 7pm (U.S. Central) | 2 | 1069 | February 12, 2021 |