source: dev/trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h@ 516

Last change on this file since 516 was 511, checked in by dai_9181, 17 years ago

幾つかの構文解析系の処理をLexicalAnalyzerに実装し直した

File size: 1.5 KB
Line 
1#pragma once
2
3namespace ActiveBasic{ namespace Compiler{
4
5
6class LexicalAnalyzer
7{
8public:
9
10 // 名前空間を収集
11 static bool CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection );
12
13 // フルネーム識別子をシンボルに変換する
14 static Symbol FullNameToSymbol( const char *fullName );
15 static Symbol FullNameToSymbol( const std::string &fullName );
16
17 // クラスの名前情報を収集する
18 static void CollectClassesForNameOnly( const char *source, Classes &classes );
19
20 // クラスを収集する
21 static void AddMethod(CClass *pobj_c, UserProc *pUserProc, Prototype::Accessibility accessibility, BOOL bStatic, bool isConst, bool isAbstract,
22 bool isVirtual, bool isOverride, const char *interfaceName, bool isAutoGeneration, int nowLine);
23 static bool Inherits( CClass &currentClass, const char *inheritNames, int nowLine );
24 static bool Implements( CClass &currentClass, const char *interfaceNames, int nowLine );
25 static void LookaheadClass( const char *className, Classes &classes );
26 static bool LoopRefCheck( const CClass &objClass );
27 static void CollectClasses( const char *source, Classes &classes );
28
29 // グローバルプロシージャを収集する
30 static UserProc* ParseUserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, char *buffer,int nowLine,bool isVirtual,CClass *pobj_c, bool isStatic, char *interfaceName = NULL );
31 static void CollectProcedures( const BasicSource &source, UserProcs &userProcs, DllProcs &dllProcs );
32};
33
34
35}}
Note: See TracBrowser for help on using the repository browser.