FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PExpr/test/stringvisitor.cpp at master · PearCoding/PExpr · GitHub
PearCoding
/
PExpr
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PExpr
/
test
/
stringvisitor.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (15 loc) · 441 Bytes
Breadcrumbs
PExpr
/
test
/
stringvisitor.cpp
Copy path
File metadata and controls
20 lines (15 loc) · 441 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
include
"
PExpr.h
"
using
namespace
PExpr
;
int
main
(
int
,
char
**)
{
Environment env;
auto
ast1 = env.
parse
(
"
abc(231*22.231*2.42e-3).xyz
"
,
true
);
if
(!ast1)
return
EXIT_FAILURE
;
std::string src1 =
StringVisitor::visit
(ast1);
auto
ast2 = env.
parse
(src1,
true
);
if
(!ast2)
return
EXIT_FAILURE
;
std::string src2 =
StringVisitor::visit
(ast1);
return
src1 == src2 ?
EXIT_SUCCESS
:
EXIT_FAILURE
;
}
Back
|
FazBrowse Home
|
New Git URL