Piethon
1.0
A Python-like interpreter using flex and bison.
exception.cpp
Go to the documentation of this file.
1
#include "
exception.h
"
2
3
const
char
*
ParseException::what
()
const
throw() {
4
return
msg
;
5
}
6
7
int
ParseException::getLineNumber
()
const
{
8
return
lineNumber
;
9
}
10
11
const
char
*
ReturnValue::what
()
const
throw() {
12
return
"a function returned a value (no error occurred)"
;
13
}
14
15
Number
ReturnValue::getValue
()
const
{
16
return
value;
17
}
18
19
int
ReturnValue::getLineNumber
()
const
{
20
return
lineNumber
;
21
}
ParseException::lineNumber
int lineNumber
Definition:
exception.h:16
ReturnValue::getValue
Number getValue() const
Definition:
exception.cpp:15
ParseException::getLineNumber
virtual int getLineNumber() const
Definition:
exception.cpp:7
exception.h
Number
Definition:
number.h:21
ParseException::what
virtual const char * what() const
Definition:
exception.cpp:3
ParseException::msg
const char * msg
Definition:
exception.h:15
ReturnValue::getLineNumber
int getLineNumber() const
Definition:
exception.cpp:19
ReturnValue::what
const char * what() const
Definition:
exception.cpp:11
Generated on Tue Jan 19 2021 23:43:11 for Piethon by
1.8.13