source: dev/trunk/jenga/include/smoothie/LexicalAnalysis.h@ 314

Last change on this file since 314 was 300, checked in by dai_9181, 17 years ago
File size: 1.4 KB
Line 
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include <windows.h>
7
8typedef std::vector<int> Subscripts;
9
10enum ReferenceKind
11{
12 RefNon = 0, // no reference member
13 RefDot, // obj.member
14 RefPointer, // obj->member
15};
16
17bool IsVariableTopChar(char c);
18bool IsVariableChar(char c);
19bool IsBlank(char c);
20int GetOneParameter(const char *Parameter,int pos,char *retAns);
21int JumpOneParameter(char *Parameter,int i);
22int GetStringInQuotation(char *buffer,char *ReadBuffer);
23int GetStringInPare(char *buffer,const char *ReadBuffer);
24int GetStringInBracket(char *buffer,const char *ReadBuffer);
25int GetStringInGenericBracket(char *buffer,const char *ReadBuffer);
26int JumpStringInPare(const char *buffer,int pos);
27int JumpStringInBracket(const char *buffer,int pos);
28bool IsCommandDelimitation( char c );
29int GetStringInPare_RemovePare(char *buffer,const char *ReadBuffer);
30void GetArrange(char *variable,char *variAnswer, Subscripts &subscripts );
31bool SplitMemberName( const char *desc, char *object, char *member, ReferenceKind &refType );
32bool SplitMemberName( const char *desc, char *object, char *member );
33void GetCalcName(int idCalc,char *name);
34BYTE ToCalcId( const char *name );
35std::string Operator_NaturalStringToCalcMarkString( const std::string &name );
36std::string Operator_CalcMarkStringToNaturalString( const std::string &name );
37bool IsGenericTypeSourcePart( const char *buffer );
Note: See TracBrowser for help on using the repository browser.