ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
Expressions.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*--------------------------- File Expressions.h ---------------------------*/
3/*--------------------------------------------------------------------------*/
51/*--------------------------------------------------------------------------*/
52/*----------------------------- DEFINITIONS --------------------------------*/
53/*--------------------------------------------------------------------------*/
54
55#ifndef __ADS_Expressions
56 #define __ADS_Expressions
57/* self-identification: #endif constant */
58
59/*--------------------------------------------------------------------------*/
60/*------------------------------ INCLUDES ----------------------------------*/
61/*--------------------------------------------------------------------------*/
62
63#include "ADS/Contract.h"
65
66#include <cstddef>
67#include <limits>
68#include <string>
69#include <string_view>
70#include <vector>
71
72/*--------------------------------------------------------------------------*/
73/*--------------------------- NAMESPACE ------------------------------------*/
74/*--------------------------------------------------------------------------*/
75
76namespace ADS
77{
78
97long evalPostfix( std::string_view e );
98
121std::string toPostfixParenthesized( std::string_view e );
122
159std::string toPostfix( std::string_view e );
160
161/*--------------------------------------------------------------------------*/
162
163} // end( namespace ADS )
164
165/*--------------------------------------------------------------------------*/
166/*-------------------------- IMPLEMENTATION --------------------------------*/
167/*--------------------------------------------------------------------------*/
168
169#include "ADS/stack/impl/Expressions.tpp"
170
171/*--------------------------------------------------------------------------*/
172
173#endif /* Expressions.h included */
174
175/*--------------------------------------------------------------------------*/
176/*------------------------- End File Expressions.h -------------------------*/
177/*--------------------------------------------------------------------------*/
The STACK of the book [see ADT.h] realized with a vector of a given capacity : the items are in the ...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
long evalPostfix(std::string_view e)
the value of the postfix expression
std::string toPostfixParenthesized(std::string_view e)
the postfix form of the fully parenthesized infix expression , its tokens separated by one space
std::string toPostfix(std::string_view e)
the postfix form of the infix expression , with the usual precedences and the associativity to the le...
Definition ADT.h:96