asdlGen Reference Manual : Support Code : Required for All Languages
Previous: Support Code
Next: BigNums

7.1. Required for All Languages

All languages require the following

instream outstream

The input and output stream that the reader and writer functions expect.

int

The type of integers, possibly a "bignum" type.

string

The type of strings

identifier

The type of identifiers

read_tag write_tag

Read and write a constructor and length tags out in ASDL integer format. Both should use the languages standard integer types rather than a "bignum" types.

read_int write_int

Read and write the int type out in ASDL integer format.

read_string write_string

Read and write the string type out in the ASDL string format.

read_identifier write_identifier

Read and write the identifier type out in the ASDL identifier format.

die

Signal a fatal error.


asdlGen Reference Manual : Support Code : Required for All Languages
Previous: Support Code
Next: BigNums