Vcsn  2.3
Be Rational
vcsn::rat::braced_expression Struct Reference

An expression that "remembers" whether it was in parentheses. More...

#include <parse.hh>

Collaboration diagram for vcsn::rat::braced_expression:

Public Member Functions

braced_expressionoperator= (dyn::expression e)
 

Public Attributes

dyn::expression exp
 The expression parsed so far. More...
 
bool lparen = false
 Whether there was a left-paren. More...
 
bool rparen = false
 Whether there was a right-paren. More...
 

Detailed Description

An expression that "remembers" whether it was in parentheses.

Used in LAW to distinguish "(a)(b)", "(a)b", "a(b)" from "ab": only in the last case the letters must be concatenated into a word.

Definition at line 62 of file parse.hh.

Member Function Documentation

braced_expression& vcsn::rat::braced_expression::operator= ( dyn::expression  e)
inline

Definition at line 70 of file parse.hh.

Member Data Documentation

dyn::expression vcsn::rat::braced_expression::exp

The expression parsed so far.

Definition at line 65 of file parse.hh.

Referenced by vcsn::rat::parser::parse().

bool vcsn::rat::braced_expression::lparen = false

Whether there was a left-paren.

Definition at line 67 of file parse.hh.

Referenced by vcsn::rat::parser::parse().

bool vcsn::rat::braced_expression::rparen = false

Whether there was a right-paren.

Definition at line 69 of file parse.hh.

Referenced by vcsn::rat::parser::parse().


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