Empirical
Public Member Functions | Public Attributes | List of all members
emp::ParseRule Struct Reference

A rule for how parsing should work. More...

#include <ConfigParser.h>

Public Member Functions

 ParseRule (int id, const emp::vector< int > &_p)
 
 ParseRule (size_t sid)
 

Public Attributes

int result_id
 
emp::vector< int > pattern
 
size_t symbol_id
 The ID of the symbol that this rule should simplify to. More...
 
emp::vector< size_t > pattern
 The pattern that this rule is triggered by. More...
 

Detailed Description

A rule for how parsing should work.

Constructor & Destructor Documentation

emp::ParseRule::ParseRule ( int  id,
const emp::vector< int > &  _p 
)
inline
emp::ParseRule::ParseRule ( size_t  sid)
inline

Member Data Documentation

emp::vector<int> emp::ParseRule::pattern
emp::vector<size_t> emp::ParseRule::pattern

The pattern that this rule is triggered by.

int emp::ParseRule::result_id
size_t emp::ParseRule::symbol_id

The ID of the symbol that this rule should simplify to.


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