Does the compiler work?
I get errors while building on OSX 10.10.3. Output of make below:
anic ANI Compiler Makefile
Building version controller...
Building lexer structure generator...
Generating lexer structures...
Compiling lexer structure object...
Building parser structure generator...
Building parser table generator...
y.c:1960:53: warning: too many arguments in call to 'StateList_create'
s->parents_list = StateList_create(s->parents_list);
~~~~~~~~~~~~~~~~ ^
y.c:2732:37: warning: data argument not used by format string [-Wformat-extra-args]
else { yyprintf2(" . error\n", reduction); } // no reduction.
~~~~~~~~~~~~~ ^
./y.h:70:38: note: expanded from macro 'yyprintf2'
{ if (fp_v != NULL) fprintf(fp_v, s, t); }
^
2 warnings generated.
get_yacc_grammar.c:430:29: warning: '&&' within '||' [-Wlogical-op-parentheses]
ysymbol_pt == 2 && ysymbol[0] == '\\')) {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
get_yacc_grammar.c:430:29: note: place parentheses around the '&&' expression to silence this warning
ysymbol_pt == 2 && ysymbol[0] == '\\')) {
^
( )
get_yacc_grammar.c:1307:29: warning: '&&' within '||' [-Wlogical-op-parentheses]
ysymbol_pt == 2 && ysymbol[0] == '\\')) {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
get_yacc_grammar.c:1307:29: note: place parentheses around the '&&' expression to silence this warning
ysymbol_pt == 2 && ysymbol[0] == '\\')) {
^
( )
2 warnings generated.
lane_tracing.c:136:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
llist_context_set_destroy(llist_context_set * s) {
^
lane_tracing.c:139:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
lane_tracing.c:1705:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static lane_tracing_phase1() {
~~~~~~ ^
lane_tracing.c:1718:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
4 warnings generated.
Constructing parser table...
Generating parser structures...
Stamping version...
./bld/getChecksumProgram.sh: line 6: type: sha256sum: not found
Version stamp is 0.74.1.26134115
Building main executable...
src/types.cpp:1081:23: error: out-of-line definition of 'iterator' does not match any declaration in 'MemberList::iterator'
MemberList::iterator::iterator(const map<string, pair<Type *, Tree *> >::iterator &internalIter) : internalIter(internalIter) {}
^~~~~~~~
src/types.h:296:20: note: type of 1st parameter of member declaration does not match definition ('const map<const string, pair<Type *, Tree *> >::iterator &'
(aka 'const __map_iterator<typename __base::iterator> &') vs 'const map<string, pair<Type *, Tree *> >::iterator &' (aka 'const __map_iterator<typename
__base::iterator> &'))
iterator(const map<const string, pair<Type *, Tree *> >::iterator &internalIter);
^
src/types.cpp:1096:50: error: no matching conversion for functional-style cast from 'iterator' (aka '__map_iterator<typename __base::iterator>') to
'MemberList::iterator'
MemberList::iterator MemberList::begin() {return iterator(memberMap.begin());}
^~~~~~~~~~~~~~~~~~~~~~~~~~
src/types.h:296:5: note: candidate constructor not viable: no known conversion from '__map_iterator<__tree_iterator<__value_type<basic_string<[3 * ...]>,
[...]>, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>, std::__1::pair<Type *, Tree *> >, void *> *, [...]>>' to 'const
__map_iterator<__tree_iterator<__value_type<const basic_string<[3 * ...]>, [...]>, std::__1::__tree_node<std::__1::__value_type<const
std::__1::basic_string<char>, std::__1::pair<Type *, Tree *> >, void *> *, [...]>>' for 1st argument
iterator(const map<const string, pair<Type *, Tree *> >::iterator &internalIter);
^
src/types.cpp:1080:23: note: candidate constructor not viable: no known conversion from 'iterator' (aka '__map_iterator<typename __base::iterator>') to
'const MemberList::iterator' for 1st argument
MemberList::iterator::iterator(const MemberList::iterator &otherIter) : internalIter(otherIter.internalIter) {}
^
src/types.cpp:1079:23: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
MemberList::iterator::iterator() : internalIter() {}
^
src/types.cpp:1097:48: error: no matching conversion for functional-style cast from 'iterator' (aka '__map_iterator<typename __base::iterator>') to
'MemberList::iterator'
MemberList::iterator MemberList::end() {return iterator(memberMap.end());}
^~~~~~~~~~~~~~~~~~~~~~~~
src/types.h:296:5: note: candidate constructor not viable: no known conversion from '__map_iterator<__tree_iterator<__value_type<basic_string<[3 * ...]>,
[...]>, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>, std::__1::pair<Type *, Tree *> >, void *> *, [...]>>' to 'const
__map_iterator<__tree_iterator<__value_type<const basic_string<[3 * ...]>, [...]>, std::__1::__tree_node<std::__1::__value_type<const
std::__1::basic_string<char>, std::__1::pair<Type *, Tree *> >, void *> *, [...]>>' for 1st argument
iterator(const map<const string, pair<Type *, Tree *> >::iterator &internalIter);
^
src/types.cpp:1080:23: note: candidate constructor not viable: no known conversion from 'iterator' (aka '__map_iterator<typename __base::iterator>') to
'const MemberList::iterator' for 1st argument
MemberList::iterator::iterator(const MemberList::iterator &otherIter) : internalIter(otherIter.internalIter) {}
^
src/types.cpp:1079:23: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
MemberList::iterator::iterator() : internalIter() {}
^
src/types.cpp:1098:67: error: no matching conversion for functional-style cast from 'iterator' (aka '__map_iterator<typename __base::iterator>') to
'MemberList::iterator'
MemberList::iterator MemberList::find(const string &name) {return iterator(memberMap.find(name));}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/types.h:296:5: note: candidate constructor not viable: no known conversion from '__map_iterator<__tree_iterator<__value_type<basic_string<[3 * ...]>,
[...]>, std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>, std::__1::pair<Type *, Tree *> >, void *> *, [...]>>' to 'const
__map_iterator<__tree_iterator<__value_type<const basic_string<[3 * ...]>, [...]>, std::__1::__tree_node<std::__1::__value_type<const
std::__1::basic_string<char>, std::__1::pair<Type *, Tree *> >, void *> *, [...]>>' for 1st argument
iterator(const map<const string, pair<Type *, Tree *> >::iterator &internalIter);
^
src/types.cpp:1080:23: note: candidate constructor not viable: no known conversion from 'iterator' (aka '__map_iterator<typename __base::iterator>') to
'const MemberList::iterator' for 1st argument
MemberList::iterator::iterator(const MemberList::iterator &otherIter) : internalIter(otherIter.internalIter) {}
^
src/types.cpp:1079:23: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
MemberList::iterator::iterator() : internalIter() {}
^
src/types.cpp:1514:48: error: cast from pointer to smaller type 'unsigned int' loses information
TypeStatus::operator uintptr_t() const {return (unsigned int)type;}
^~~~~~~~~~~~~~~~~~
5 errors generated.
make: *** [anic] Error 1