I wonder if grammar based types exist.

I see types based of predicates (dependent types) and algebraic types. Maybe Antlr informally counts as that. But it only really parses and scans stuff.

@worldsendless Kind of like this

str_decl : 'string' id '=' val ';'
{
st.addVariable(Type.STRING, $id.text, $val.text);
// ...

};

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.