Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F5333905
LispTest.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 21, 4:29 AM
Size
1 KB
Mime Type
text/x-java
Expires
Mon, Nov 23, 4:29 AM (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
316516
Attached To
rXR Xreate
LispTest.java
View Options
/*
* 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
Log In to Comment