| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.openorb.compiler.parser.IdlParser
The IDL parser
| Field Summary | |
|  java.util.Vector | compilationListCompilation contexts list (when including) | 
| static IdlObject | containerReference to the current container ( default is root ) | 
|  CompilationContext | ctxCurrent compilation context | 
| static java.io.PrintStream | error_outputError output | 
|  java.lang.String[] | file_extensionFile extension for parsing input | 
| static IdlComment | idl_commentIDL Comment | 
|  java.util.Vector | idlIncludedIncluded IDL files list | 
| static int | include_levelIncluding depth | 
|  boolean | macros_enabledMacro expansion is turned on, read_word expands macros. | 
|  int | passIndicates the conditional (if) compilation state. | 
|  IdlObject | rootCompilation graph root node | 
|  int | stop_elseShould stop compitlation on else. | 
|  java.util.Vector | StopListStop symbols when error | 
| static int | totalErrorTotal errors count | 
| Constructor Summary | |
| IdlParser()Creates a parser | |
| Method Summary | |
|  IdlObject | compile_idl(java.lang.String file_name)Start the compilation of an IDL file | 
|  IdlObject | compile_idl(java.lang.String file_name,
            IdlObject current_root)Start the compilation of an IDL file | 
|  void | define_symbole()Cette methode permet de definir un symbole pour la compilation conditionnelle. | 
|  void | ifdef_symbole()Cette methode permet la gestion de la compilation conditionnelle | 
|  void | ifndef_symbole()Cette methode permet la gestion de la compilation conditionnelle | 
|  void | include_idl_file(java.lang.String file_name)Cette methode permet la compilation d'un fichier inclus | 
|  void | include_idl()Cette methode permet la compilation d'un fichier inclus | 
|  boolean | is_java_reserved_word()Cette methode compare un mot avec les identificateurs de la liste des mots reserves java et retourne VRAI dans le cas ou celui-ci est trouve | 
|  boolean | is_reserved_word()Cette methode compare un mot avec les identificateurs de la liste des mots reserves et retourne VRAI dans le cas ou celui-ci est trouve | 
|  CompilationContext | new_compilation_context()Cette methode cree un nouveau contexte de compilation. | 
|  void | open_idl_file(java.lang.String source_name)Open an IDL file | 
|  void | parse()This method parses an IDL file. | 
|  void | pre_parse()Cette methode effectue une tache de pre-compilation | 
|  void | precompiler_error() | 
|  void | precompiler_warning() | 
|  boolean | read_description()This function extracts from an IDL comment a section description. | 
|  void | read_number()Cette methode permet de lire un nombre dans un flux d'entree | 
|  void | read_word()Cette methode permet d'extraire un mot d'un flux d'entree | 
|  void | scan_comment()This method scan rich comment like java doc | 
|  void | scan()Cette methode scan un fichier | 
|  void | show_error(java.lang.String msg)Prints an error | 
| static void | show_fatal_error(java.lang.String message)Print error message and exit | 
|  void | show_internal_error()Print error message and exit | 
|  void | stopAt(java.util.Vector list)Cette methode deroule un fichier IDL jusqu'a lecture d'un des elements specifies | 
|  void | symbole()Cette methode extrait les symboles de la grammaire IDL | 
|  void | to_reserved_word()Retourne un token de mot reserve dans le cas de l'identificateur trouve dans la liste des mots reserves | 
|  void | undefine_symbole()Cette methode permet de supprimer un symbole precedemment defini pour la compilation conditionnelle. | 
|  void | unscan() | 
|  void | warning(java.lang.String msg)Print a warning | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public IdlObject root
public static IdlObject container
public static java.io.PrintStream error_output
public java.lang.String[] file_extension
public static int totalError
public CompilationContext ctx
public java.util.Vector StopList
public static int include_level
public static IdlComment idl_comment
public java.util.Vector compilationList
public java.util.Vector idlIncluded
public int pass
public int stop_else
public boolean macros_enabled
| Constructor Detail | 
public IdlParser()
| Method Detail | 
public void show_error(java.lang.String msg)
msg - error messagepublic void show_internal_error()
public static void show_fatal_error(java.lang.String message)
message - error messagepublic void warning(java.lang.String msg)
msg - warning textpublic boolean is_reserved_word()
public boolean is_java_reserved_word()
public void to_reserved_word()
public CompilationContext new_compilation_context()
CompilationContextpublic void open_idl_file(java.lang.String source_name)
file_name - file namepublic void include_idl()
public void include_idl_file(java.lang.String file_name)
public void precompiler_error()
public void precompiler_warning()
public void define_symbole()
public void undefine_symbole()
public void ifndef_symbole()
public void ifdef_symbole()
public boolean read_description()
public void scan_comment()
public void scan()
public void unscan()
public void pre_parse()
public void read_word()
public void read_number()
public void parse()
public void symbole()
public void stopAt(java.util.Vector list)
list - Liste des elements d'arret
public IdlObject compile_idl(java.lang.String file_name,
                             IdlObject current_root)
file_name - IDL file nameIdlObjectpublic IdlObject compile_idl(java.lang.String file_name)
file_name - IDL file nameIdlObject| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||