org.jatha.machine

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Jatha » org.jatha.machine 
org.jatha.machine
Java Source File NameTypeComment
opAP.javaClass opAP applies a non-recursive function in an evaluation environment. ((f.e') v.s) e (AP.c) d --> NIL (v.e') f (s e c.d) Replaces the C register with the CAR of the topmost value on the S register. Pushes the C, E and S registers onto the D register, in that order. Replaces the E register with a cons of the second value on the S register and the cdr of the first value. Places NIL in the S register.
See Also:   SECDMachine
author:
   Micheal S.
opBLK.javaClass

The BLK-operation is a marker, which pops itself and it's argument from the C register.

opDAP.javaClass opDAP optimizes the (...
opDUM.javaClass opDUM Sets up a dummy entry in the E register to prepare for execution of a recursive function. Pushes NIL onto the E register and pops the C register.
See Also:   SECDMachine
author:
   Micheal S.
opJOIN.javaClass opJOIN terminates a branch of an IF-ELSE statement by taking the topmost entry from the D register and storing it in the C register.
See Also:   SECDMachine
author:
   Micheal S.
opLD.javaClass opLD pushes the value of a local variable onto the S register and removes two values from the C register. The values on the C register are the constant 'LD' and the pair (i, j), which are indices into the value of the E register which is a list of lists.
See Also:   SECDMachine
author:
   Micheal S.
opLDC.javaClass opLDC pops two values from the C register and pushes the second of those onto the S register. The two values on the C register should be the constant 'LDC' and a value.
See Also:   SECDMachine
author:
   Micheal S.
opLDF.javaClass opLDF prepares to execute a non-recursive function. It makes a closure and pushes it on the S register. Uses S register (2 values). Modifes C, D, E, and S registers.
See Also:   SECDMachine
author:
   Micheal S.
opLDFC.javaClass LDFC is not in Kogge's book.
opLDR.javaClass JPG : Not an original jatha opcode opLDR (op LoaD Rest) has been added to handle user-defined functions with a variable number of args (with &rest keyword in the list of parameters) opLDR pushes the value of a local variable onto the S register and removes two values from the C register.
opLD_GLOBAL.javaClass opLD_GLOBAL pushes onto the stack the value of a global variable. Handles special (dynamically-bound) variables correctly. Uses C register (2 values). Modifes register S
See Also:   SECDMachine
author:
   Micheal S.
opLIS.javaClass opLIS is not in the Kogge book.
opNIL.javaClass opNIL pushes the constant NIL onto the S register and pops the C register. Modifes S register.
See Also:   SECDMachine
author:
   Micheal S.
opRAP.javaClass opRAP applies a recursive function in an evaluation environment. It pushes the S, E and C registers on to the D register. It pushes the car of the topmost S value onto the C register. ((f.(nil.e)) v.s) (nil.e) (RAP.c) d --> NIL ((v.e).e) f (s e c.d) Uses S, E, C and D registers. Modifes S, E, C and D registers.
See Also:   SECDMachine
author:
   Micheal S.
opRTN.javaClass opRTN returns from a function call. Replaces the S, E and C registers with the first three values in the D register. Then pushs the topmost value on the old S register on the new S register.
See Also:   SECDMachine
author:
   Micheal S.
opRTN_IF.javaClass opRTN_IF returns from a function call if the value on the stack is NIL.
opRTN_IT.javaClass opRTN_IT returns from a function call if the value on the stack is non-NIL.
opSEL.javaClass opSEL takes a branch in an IF-ELSE expression. It selects code from the C register and, depending on whether the topmost value in the S register is true or not, places that code on the C register and pushes the remaining C register code onto the D register. Pops the S register.
See Also:   SECDMachine
author:
   Micheal S.
opSP_BIND.javaClass opSP_BIND binds a special variable to the topmost value on the stack.
opSP_UNBIND.javaClass opSP_UNBIND unbinds a special variable. The variable name is the next value on the C register.
See Also:   SECDMachine
author:
   Micheal S.
opSTOP.javaClass opSTOP halts the machine. Uses C register.
See Also:   SECDMachine
author:
   Micheal S.
opT.javaClass opT pushes a constant T onto the stack. Uses C register (2 values). Modifes S register.
See Also:   SECDMachine
author:
   Micheal S.
opTAG_B.javaClass
opTAG_E.javaClass
opTEST.javaClass opTEST is a variation of SEL that optimizes for recursion in the else part.
SECDMachine.javaClass The SECDMachine contains the registers and basic functionality of the SECD machine. It exports constants corresponding to each primitive machine instruction and to each primitive LISP operation, so that the compiler may insert them into code. A modification to the standard SECD machine is the new 'B' register that handles dynamic binding.
See Also:   SECDop
author:
   Micheal S.
SECDop.javaClass SECDop is the abstract class that encompasses all SECD machine ops.
See Also:   org.jatha.compile.LispPrimitive
author:
   Micheal S.
SECDRegister.javaClass SECDRegister is essentially a Stack, with an additional assign() method which resets the value, and a value() method which retrieves the whole stack.
author:
   Micheal S.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.