public CefExportFunction(CefType parent, Parser.FunctionNode fd, ApiTypeBuilder api, CefPlatform platform)
 {
     this.Name           = fd.Name;
     this.Comments       = fd.Comments;
     this.Signature      = Signature.Create(SignatureType.LibraryCall, CefName, CefConfig, CallMode, fd.Signature, api);
     this.PrivateWrapper = GeneratorConfig.HasPrivateWrapper(this.Name);
     this.Parent         = parent;
     this.Platform       = platform;
 }
Esempio n. 2
0
 public Token(string Name)
 {
     this.Name = Name;
     if (IsStringLiteral())
     {
         //this.Name = Name.Replace("_", " ");
         this.Name = Name.Substring(1, Name.Length - 2);
         this.Type = CefType.StringLiteral;
     }
 }
Esempio n. 3
0
 public Variable(string Name, CefType type)
 {
     this.Name = Name;
     this.Type = type;
 }
 public CefExportFunction(CefType parent, Parser.FunctionNode fd, ApiTypeBuilder api)
     : this(parent, fd, api, CefPlatform.Independent)
 {
 }
Esempio n. 5
0
        public static List <Expression> ParseExpressions(List <Token> tokens, CefType stopToken)
        {
            Parser parser = new Parser(stopToken);

            return(parser.ParseExpressions(tokens));
        }
Esempio n. 6
0
 public Parser(CefType stopToken = CefType.EOF)
 {
     this.stopToken = stopToken;
 }
Esempio n. 7
0
 public Token(string Name, CefType Type)
 {
     this.Name = Name;
     this.Type = Type;
 }
Esempio n. 8
0
        public static Token toToken(this string tok, CefType type)
        {
            Token t = new Token(tok, type);

            return(t);
        }