LispTest.java
No OneTemporary

File Metadata

Created
Sat, Nov 21, 4:29 AM

LispTest.java

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.xreate;
import java.io.IOException;
import junit.framework.TestCase;
import org.antlr.runtime.*;
import org.junit.Ignore;
import org.xreate.grammatic.lisp.ASTLispNode;
import org.xreate.grammatic.lisp.LispLexer;
import org.xreate.grammatic.lisp.LispParser;
import static org.junit.Assert.*;
import org.junit.Test;
import org.xreate.grammatic.lisp.LispInterpreter;
/**
*
* @author pgess
*/
public class LispTest {
static int z;
@Ignore
@Test
public void test1() throws RecognitionException{
assertTrue(true);
ANTLRStringStream in = new ANTLRStringStream("aa(bb, cc(dd, ee))");
Lexer l = new LispLexer(in);
CommonTokenStream tokens = new CommonTokenStream(l);
LispParser p = new LispParser(tokens);
ASTLispNode node = p.statement(null);
int x = 0;
}
@Ignore
@Test
public void test2() throws IOException, RecognitionException{
ANTLRStringStream in = new ANTLRFileStream("/private/prg/code/xreate/scripts/opcode.li");
Lexer l = new LispLexer(in);
CommonTokenStream tokens = new CommonTokenStream(l);
LispParser p = new LispParser(tokens);
ASTLispNode node = p.statement(null);
int x = 0;
}
@Test
public void test3() throws Exception{
LispInterpreter lisp = new LispInterpreter();
lisp.run("/private/prg/code/xreate/scripts/opcode.li");
//assertEquals(answer, 100);
}
static {
System.loadLibrary("jllvm");
}
}

Event Timeline