The original interpreter is based on Perl, but there are other first-party libraries: http://www.rivescript.com/interpreters