Functions
stanc.cpp File Reference
#include <stan/command/stanc_helper.hpp>

Go to the source code of this file.

Functions

int main (int argc, const char *argv[])
 

Function Documentation

int main ( int  argc,
const char *  argv[] 
)

The Stan compiler (stanc).

Parameters
argcNumber of arguments
argvArguments
Returns
0 for success, -1 for exception, -2 for parser failure, -3 for invalid arguments.

Definition at line 12 of file stanc.cpp.

References stanc_helper().

12  {
13  std::stringstream out_stream;
14  std::stringstream err_stream;
15  return stanc_helper(argc, argv, &out_stream, &err_stream);
16 }
int stanc_helper(int argc, const char *argv[], std::ostream *out_stream, std::ostream *err_stream)