Add missing files

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-13 07:07:14 -07:00
parent b308355426
commit 963afa4861
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <sstream>
#include "scanner.h"
#include "test.h"
using namespace lean;
static void tst1() {
char tst[] = "fun(x: pi A : Type, A -> A), (* (* test *) *) x+1 = 2.0 λ";
std::istringstream in(tst);
scanner s(in);
while (true) {
scanner::token t = s.scan();
if (t == scanner::token::Eof)
break;
std::cout << t << " ";
}
std::cout << "\n";
}
int main() {
continue_on_violation(true);
tst1();
return has_violations() ? 1 : 0;
}

View file

@ -0,0 +1,2 @@
add_library(sexpr sexpr.cpp sexpr_funcs.cpp format.cpp options.cpp)
target_link_libraries(sexpr ${LEAN_LIBS})