Open mingodad opened 1 year ago
After adding _Imaginary
to the list of reserved words and trying to build it with clang15
:
c99.cpp:9155:3: error: no matching constructor for initialization of 'const util::syntax_ptr<list_of_Type_Qualifier_n>'
, list_of_Type_Qualifier(list_of_Type_Qualifier_2_2)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../TameParse/Util/syntax_ptr.h:74:25: note: candidate constructor not viable: no known conversion from 'const util::syntax_ptr<class list_of_Type_Qualifier_2_n>' to 'util::syntax_ptr_reference *' for 1st argument
inline explicit syntax_ptr(syntax_ptr_reference* ref)
^
../TameParse/Util/syntax_ptr.h:89:25: note: candidate constructor not viable: no known conversion from 'const util::syntax_ptr<class list_of_Type_Qualifier_2_n>' to 'const C99::list_of_Type_Qualifier_n *' for 1st argument
explicit inline syntax_ptr(const ptr_type* value)
^
../TameParse/Util/syntax_ptr.h:94:16: note: candidate constructor not viable: no known conversion from 'const syntax_ptr<class list_of_Type_Qualifier_2_n>' to 'const syntax_ptr<C99::list_of_Type_Qualifier_n>' for 1st argument
inline syntax_ptr(const syntax_ptr<ptr_type>& copyFrom)
^
../TameParse/Util/syntax_ptr.h:81:16: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
inline syntax_ptr()
^
1 error generated.
Changing the code generated from the parser from:
class list_of_Type_Qualifier_2_n : public syntax_node {
to:
class list_of_Type_Qualifier_2_n : public list_of_Type_Qualifier_n {
Then it builds. Does the code generated need to be changed ?
It builds but fail parsing what it succed with -test
at compile time of https://github.com/Logicalshift/TameParse/files/10742335/miniyacc.pp.c.zip :
cat miniyacc.pp.c | ./C99_tp
Syntax error on line 850, column 17
cat miniyacc.pp.c | ../parsetool/tameparse --enable-lr1-resolver --test -S '<Translation-Unit>' C99.tp
TameParse 0.1.0
Hello Andrew ! Do you have intention of fix/update/maintain this project ?
After adding
_Complex``to the list of reserved words in
TameParse/Compiler/OutputStages/cplusplus.cpp` and trying to build the C99 parser from C99.tp we get this error:Build script:
c99_main.cpp: