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; }
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; } }
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) { }
public static List <Expression> ParseExpressions(List <Token> tokens, CefType stopToken) { Parser parser = new Parser(stopToken); return(parser.ParseExpressions(tokens)); }
public Parser(CefType stopToken = CefType.EOF) { this.stopToken = stopToken; }
public Token(string Name, CefType Type) { this.Name = Name; this.Type = Type; }
public static Token toToken(this string tok, CefType type) { Token t = new Token(tok, type); return(t); }