Follow

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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.