MysoreScript
Public Attributes | List of all members
AST::ParamList Struct Reference

A parameter list for a closure declaration. More...

#include <ast.hh>

Inheritance diagram for AST::ParamList:
Inheritance graph
[legend]
Collaboration diagram for AST::ParamList:
Collaboration graph
[legend]

Public Attributes

ASTList< Identifierarguments
 The arguments in this parameter list. More...
 

Detailed Description

A parameter list for a closure declaration.

This contains list of identifiers, one for each parameters.

This class exists to simplify automatic AST building: Pegmatite will pop all identifiers that are within the range of the of the parameter list as described in the grammar when constructing this class. If the ASTList<Identifier> were just within the ClosureDecl then it would also pop the closure name onto the stack.

Definition at line 462 of file ast.hh.

Member Data Documentation

§ arguments

ASTList<Identifier> AST::ParamList::arguments

The arguments in this parameter list.

Definition at line 467 of file ast.hh.


The documentation for this struct was generated from the following file: