IronKonoha.KonohaSpace.GetSyntax C# (CSharp) Method

GetSyntax() private method

private GetSyntax ( KeywordType keyword ) : Syntax
keyword KeywordType
return Syntax
        internal Syntax GetSyntax(KeywordType keyword)
        {
            //return GetSyntax(keyword, true);
            return GetSyntax(keyword, false);
        }

Same methods

KonohaSpace::GetSyntax ( KeywordType keyword, bool isnew ) : Syntax

Usage Example

コード例 #1
0
ファイル: Tokenizer.cs プロジェクト: tetsurom/ikonoha
 // static kbool_t Token_resolved(CTX, kKonohaSpace *ks, struct _kToken *tk)
 public bool IsResolved(Context ctx, KonohaSpace ks)
 {
     KKeyWord kw = ctx.kmodsugar.keyword_(this.Text, null);
     if (kw != null && kw != Symbol.NONAME)
     {
         Syntax syn = ks.GetSyntax(kw.Type);
         if (syn != null)
         {
             if (syn.Type != KonohaType.Unknown)
             {
                 this.Keyword = KeywordType.Type;
                 this.Type = TokenType.TYPE;
                 this.KType = syn.Type;
             }
             else
             {
                 this.Keyword = kw.Type;
             }
             return true;
         }
     }
     return false;
 }