Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
ParserGenerator
Commits
69419066
Commit
69419066
authored
May 03, 2021
by
Pierre Aubert
Browse files
Add generated doc
parent
479db7f2
Pipeline
#117363
passed with stages
in 8 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
src/CppBackEnd/repr_cpp_backend.cpp
src/CppBackEnd/repr_cpp_backend.cpp
+30
-0
src/CppBackEnd/repr_cpp_token.cpp
src/CppBackEnd/repr_cpp_token.cpp
+1
-1
No files found.
src/CppBackEnd/repr_cpp_backend.cpp
View file @
69419066
...
...
@@ -576,35 +576,65 @@ std::string graph_cpp_charSetDecl(const PTabGraphToken & tabGraphToken){
body
+=
"
\n
"
;
body
+=
"
\t\t
//Default charSet of the parser
\n
"
;
body
+=
"
\n
"
;
body
+=
"
\t\t
///Charset of numbers
\n
"
;
body
+=
"
\t\t
std::string csNumber;
\n
"
;
body
+=
"
\t\t
///Charset of unsigned integers
\n
"
;
body
+=
"
\t\t
std::string csUnsignedNumber;
\n
"
;
body
+=
"
\t\t
///Charset of long unsigned integers
\n
"
;
body
+=
"
\t\t
std::string csLongUnsignedNumber;
\n
"
;
body
+=
"
\t\t
///Charset of float
\n
"
;
body
+=
"
\t\t
std::string csFloat;
\n
"
;
body
+=
"
\t\t
///Charset of double
\n
"
;
body
+=
"
\t\t
std::string csDouble;
\n
"
;
body
+=
"
\t\t
///Charset of Upper case
\n
"
;
body
+=
"
\t\t
std::string csUpperCase;
\n
"
;
body
+=
"
\t\t
///Charset of lower case
\n
"
;
body
+=
"
\t\t
std::string csLowerCase;
\n
"
;
body
+=
"
\t\t
///Charset of letter
\n
"
;
body
+=
"
\t\t
std::string csLetter;
\n
"
;
body
+=
"
\t\t
///Charset of unserscore
\n
"
;
body
+=
"
\t\t
std::string csUnderscore;
\n
"
;
body
+=
"
\t\t
///Charset of operatir
\n
"
;
body
+=
"
\t\t
std::string csOperator;
\n
"
;
body
+=
"
\t\t
///Charset of brace
\n
"
;
body
+=
"
\t\t
std::string csBrace;
\n
"
;
body
+=
"
\t\t
///Charset of hook
\n
"
;
body
+=
"
\t\t
std::string csHook;
\n
"
;
body
+=
"
\t\t
///Charset of parenthesis
\n
"
;
body
+=
"
\t\t
std::string csParenthesis;
\n
"
;
body
+=
"
\t\t
///Charset of comme
\n
"
;
body
+=
"
\t\t
std::string csComma;
\n
"
;
body
+=
"
\t\t
///Charset of semicolumn
\n
"
;
body
+=
"
\t\t
std::string csDotComma;
\n
"
;
body
+=
"
\t\t
///Charset of dot
\n
"
;
body
+=
"
\t\t
std::string csDot;
\n
"
;
body
+=
"
\t\t
///Charset of question mark
\n
"
;
body
+=
"
\t\t
std::string csQuestionMark;
\n
"
;
body
+=
"
\t\t
///Charset of colum
\n
"
;
body
+=
"
\t\t
std::string csDoubleDot;
\n
"
;
body
+=
"
\t\t
///Charset of exclamation mark
\n
"
;
body
+=
"
\t\t
std::string csExclamation;
\n
"
;
body
+=
"
\t\t
///Charset of punctuation
\n
"
;
body
+=
"
\t\t
std::string csPunctuation;
\n
"
;
body
+=
"
\t\t
///Charset of chevron
\n
"
;
body
+=
"
\t\t
std::string csChevron;
\n
"
;
body
+=
"
\t\t
///Charset of quote
\n
"
;
body
+=
"
\t\t
std::string csQuote;
\n
"
;
body
+=
"
\t\t
///Charset of double quote
\n
"
;
body
+=
"
\t\t
std::string csDoubleQuote;
\n
"
;
body
+=
"
\t\t
///Charset of base string
\n
"
;
body
+=
"
\t\t
std::string csBaseString;
\n
"
;
body
+=
"
\t\t
///Charset of string
\n
"
;
body
+=
"
\t\t
std::string csString;
\n
"
;
body
+=
"
\t\t
///Charset of string quote
\n
"
;
body
+=
"
\t\t
std::string csStringQuote;
\n
"
;
body
+=
"
\t\t
///Charset of back quote
\n
"
;
body
+=
"
\t\t
std::string csBackQuote;
\n
"
;
body
+=
"
\t\t
///Charset of type
\n
"
;
body
+=
"
\t\t
std::string csType;
\n
"
;
body
+=
"
\t\t
///Charset of function name
\n
"
;
body
+=
"
\t\t
std::string csFunctionName;
\n
"
;
body
+=
"
\t\t
///Charset of variable name
\n
"
;
body
+=
"
\t\t
std::string csVariableName;
\n
"
;
body
+=
"
\n
"
;
const
PVecCharSet
&
vecCharSet
=
tabGraphToken
.
getVecCharSet
();
...
...
src/CppBackEnd/repr_cpp_token.cpp
View file @
69419066
...
...
@@ -392,7 +392,7 @@ std::string repr_cpp_tokenFunctionSourceDoCommandCallGraph(const PTabGraphToken
// std::string parameterCall(getVectorParameterCall(vecPar));
std
::
string
parameterCall
(
getTokenGetterCall
(
graph
.
getVarType
(),
vecPar
.
back
(),
vecPar
.
front
()));
body
+=
"
\t
if(!"
+
firstTokenFunction
+
"("
+
parameterCall
+
")){
\t
//The call graph don't have undo function
\n
"
;
body
+=
"
\t
if(!"
+
firstTokenFunction
+
"("
+
parameterCall
+
")){
\t
//The call graph do
es
n't have undo function
\n
"
;
// body += "\t\t"+firstTokenFunction+"Undo("+parameterCall+");\n";
body
+=
"
\t\t
return false;
\n
"
;
body
+=
"
\t
}else{
\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment