All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aioli.vtp.Proto

java.lang.Object
   |
   +----aioli.vtp.Proto

public class Proto
extends Object
Implements a tree protocol to build tree. The protocol is stack based. Operators are represented as
 formalism_name$operator_name 
. Atomic values are given their string representation. Tree construction are given by an operator construction plus the number of elements we have to remove from the stack to get the sons of the tree. Let's suppose we have to transmit the following tree:
 env[pair(var x, int 1),pair(var y, int 2)] 
in the formalism tiny. The protocol will be:
tiny$var
x
tiny$int
1
tiny$pair
2
tiny$var
y
tiny$int
2
tiny$pair
2
tiny$env
2


Constructor Index

 o Proto()

Method Index

 o readTree(BufferedReader)
readTree with a protocol, to use as a filter on a reader that may be used later on.
 o readTree(InputStream)
readTree with a protocol.

Constructors

 o Proto
 public Proto()

Methods

 o readTree
 public static Tree readTree(InputStream is)
readTree with a protocol.

Parameters:
is - the InputStream.
 o readTree
 public static Tree readTree(BufferedReader dis)
readTree with a protocol, to use as a filter on a reader that may be used later on.

Parameters:
dis - the BufferedReader.

All Packages  Class Hierarchy  This Package  Previous  Next  Index