Thanks.
On Nov 22, 7:07 pm, Jay McCarthy <
jay.mccar...@gmail.com> wrote:
> Correct
>
> Jay
>
>
>
> On Mon, Nov 22, 2010 at 6:52 PM, Steven Nay <
steven....@gmail.com> wrote:
> > t-num is part of the abstract syntax (types as you, the writer of the
> > language, represent them in your model). They are not part of the concrete
> > syntax (what the person writing in your language will type). Instead, it
> > would look like this:
> > (fun (x : number) : number (+ 1 0))
> > You'll have to pull those out in your parser.
> > Steve
>
> > On Mon, Nov 22, 2010 at 6:46 PM, Joseph Heydorn <
jeheyd...@gmail.com> wrote:
>
> >> If the parser finds a line such as:
>
> >> (fun (x : (t-num)) : (t-num) (+ 1 0))
>
> >> How do we pull the (t-num) out? The only way I can think of is to
> >> treat (t-num) as a list with the sybmol 't-num as it's first element,
> >> then call a function which translates that symbol into a type (t-num),
> >> which would be messy when the parser finds a (t-fun type type). Is
> >> there a way to do this by simply converting the concrete
> >> representation of (t-num) to the data type (t-num)?
>
> --
> Jay McCarthy <
j...@cs.byu.edu>
> Assistant Professor / Brigham Young Universityhttp://
faculty.cs.byu.edu/~jay