The Source for Java Technology Collaboration


links.cofares.net

The NAOP project

abstract

naop is an interpreter with a dynamic binding capability and a previous operator. These 3 points are the essence of the AOP? to participate to this and to contribute to implements a tool to demonstrate this idea visit the project home page - https://naop.dev.java.net -

The pre version grammar of the language

Terms used in the project

* the atoms? are java object

* The envirement? Env, the set of couples (symbols,Stack of definitions)

* the language expressions? Exp

* the instructions? Inst

The grammar (verry simple yet)

L ::= Block;L
Block ::= namespace Nom {LI} | quit
LI ::= Inst;LI | Inst
Inst ::= Bind | Unbind | Eval | Show 
Bind ::= Var = Exp
Unbind ::= ¬Var
Eval :== !Exp
Show :== show Var
Exp ::= Atom | Var | ExpB | NextDef | Cond | Lambda | Apply | Ref
Exp ::= Bind | Flambda | Chaine | Unbind | Send
Atom ::= Class Params
Class ::= nom de classe java
Params ::= Exp  Params | Exp
Send ::= send var var params
Lambda ::= lambda Var -> Exp
Flambda ::= flambda Var -> Exp
Var ::= symbole au sens java
Cond :== if Exp  Exp  Exp
Apply :== [Exp Exp]
NextDef :== #Exp
ExpB :== (Exp Opb Exp)
Opb :== + | - | * | / | ....

The interpreter is based on A pattern for LR grammar

Pascal Farès - http://www.cofares.net - tikiwiki -

Visit The Quality Link Directory links.cofares.net

need a professional web hosting plan: try http://www.eurabiahosting.com -- Main.pascalfares - 29 Jan 2006

Topic Naop . { Edit | Ref-By | Printable | Diffs r4 < r3 < r2 < r1 | More }
 XML java.net RSS

Revision r4 - 06 Mar 2007 - 21:25:21 - Main.pascalfares
Parents: WebHome