UNPKG

@esolangs/typina

Version:

Pineapple interpreter implemented in TypeScript's type system

11 lines (8 loc) 230 B
import { Parse, Eval } from './src/pina' /** * Pineapple interpreter. * * Returns program output string. Or `never` when parse or execution fails. */ type Pina<Code extends string> = Eval<Parse<Code>>; export default Pina;