private bool ParseToken() { bool result = true; TokenComment tokenComment = new TokenComment(this); TokenKeyword tokenKeyword = new TokenKeyword(this); TokenLeftBracket tokenLeftBracket = new TokenLeftBracket(this); TokenRightBracket tokenRightBracket = new TokenRightBracket(this); TokenString tokenString = new TokenString(this); TokenComma tokenComma = new TokenComma(this); TokenFloat tokenFloat = new TokenFloat(this); TokenInt tokenInt = new TokenInt(this); TokenBool tokenBool = new TokenBool(this); TokenLeftCurlyBracket tokenLeftCurlyBracket = new TokenLeftCurlyBracket(this); TokenRightCurlyBracket tokenRightCurlyBracket = new TokenRightCurlyBracket(this); if (tokenComment.TryToGet()) { this.m_Tokens.Add(tokenComment); } else if (tokenBool.TryToGet()) { this.m_Tokens.Add(tokenBool); } else if (tokenKeyword.TryToGet()) { this.m_Tokens.Add(tokenKeyword); } else if (tokenLeftBracket.TryToGet()) { this.m_Tokens.Add(tokenLeftBracket); } else if (tokenRightBracket.TryToGet()) { this.m_Tokens.Add(tokenRightBracket); } else if (tokenString.TryToGet()) { this.m_Tokens.Add(tokenString); } else if (tokenComma.TryToGet()) { this.m_Tokens.Add(tokenComma); } else if (tokenFloat.TryToGet()) { this.m_Tokens.Add(tokenFloat); } else if (tokenInt.TryToGet()) { this.m_Tokens.Add(tokenInt); } else if (tokenLeftCurlyBracket.TryToGet()) { this.m_Tokens.Add(tokenLeftCurlyBracket); } else if (tokenRightCurlyBracket.TryToGet()) { this.m_Tokens.Add(tokenRightCurlyBracket); } else { result = false; } return(result); }
public ConstFloat(Double value, TokenFloat.Suffix suffix) { this.value = value; this.suffix = suffix; }