Design Pattern Examples
Overview of object-oriented design patterns
Interpreter_Interpreter.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __INTERPRETER_INTERPRETER_H__
8#define __INTERPRETER_INTERPRETER_H__
9
11
15enum
16{
17 PERIOD = 100,
18 QUESTION = 101,
19 EOL = -1
20};
21
47bool Interpreter_Interpret(const int* tokenList, DynamicString* output);
48
49#endif // __INTERPRETER_INTERPRETER_H__
50
@ EOL
Marker for end of a token list.
@ QUESTION
Question mark.
@ PERIOD
Period.
bool Interpreter_Interpret(const int *tokenList, DynamicString *output)
This function is a simple interpreter.
Declaration of the DynamicString structure and supporting functions to work with dynamic strings.
Represents a string that can be grown dynamically.
Definition: dynamicstring.h:16