The Beauty and Power of Primitive C++support several programming languages, we need an IDL • That’s an opportunity • The IDL can be simpler than what’s found in the various languages • The IDL can accommodate specialized application needs Don’t add complexity without a use case ## Given an IDL Now see what it takes to get what we want aka Design and implementation • We need a parser/generator • Generate “ideal” interfaces and implementations Interfaces must be “culturally appropriate” for each language ## Flats library and tools framework • IDL, generation, support library, my code, (transport), your code • The “generators is a tool-generation0 码力 | 53 页 | 1.03 MB | 1 年前3
2.2 从零开始用 Go 实现 Lexer & Parser - 何源从零开始用 Go 实现 Lexer & Parser 何源 yuan@liulishuo.com 流利说 流利说 Help everyone become a global citizen! aithub/lingochamp 流利说 Empower everyone to achieve their full potential 何源 yuan@liulishuo.com Platform WORK ELSEWHERE, DELETE THE PROJECT, AND DOWNLOAD A FRESH COPY. 撸起袖子! — 撸起袖子加油干! 三步走 写一个 Parser: course file -> pb file • 写一个 Lexer • 串起来 1. 定义格式 ===== Group 1526034270606411 [TYPE Pre] start of this item. } type itemType int const itemNil itemType = iota // used in the parser to indicate no type itemError // error occurred; value is text of error itemEOF itemBool0 码力 | 81 页 | 4.72 MB | 3 月前3
Express Your Expectations: A Fast, Compliant JSON Pull Parser for Writing Robust Applications## +23 ## Express Your Expectations: A Fast, Compliant JSON Pull Parser for Writing Robust Applications ## JONATHAN MÜLLER ## Pete Cordell Telling a programmer there's already a library to do X p3_1.jpg) ☑ fully validating pull parser ☑ fast, O(1) memory usage ☑ implicitly define schema ### github.com/think-cell/think-cell-library ## What is a parser? ## Javascript Object Notation (JSON) "Express your expectations", "subtitle": "A fast, compliant JSON pull parser..." } ] } value = 'null' | 'true' | 'false' | number | string0 码力 | 143 页 | 736.91 KB | 1 年前3
Julia 1.10.0 beta1 DocumentationFor a complete list of every Julia operator's precedence, see the top of this file: src/julia-parser.scm. Note that some of the operators there are not defined in the Base module but may be given definitions respectively, just after and just before newlines within the string. x Tells the regular expression parser to ignore most whitespace that is neither backslashed nor within a character class. You can use this its second in a per-module dictionary called META. To make it easier to write documentation, the parser treats the macro name @doc specially: if a call to @doc has one argument, but another expression0 码力 | 1681 页 | 5.96 MB | 2 年前3
phpMyAdmin Documentation Release 5.0.5-devlimitations are as before. ## CSV using LOAD DATA Similar to CSV, only using the internal MySQL parser and not the phpMyAdmin one. ## ESRI Shape File The ESRI shapefile or simply a shapefile is a popular • Host authentication IP Allow/Deny • DB-based configuration (Not completed) • SQL parser and pretty-printer • SQL validator • many bugfixes and improvements • Armel Fauveau Export with table/column name changes • Dan Ungureanu (Google Summer of Code 2015) • New parser and analyzer • Nisarg Jhaveri (Google Summer of Code 2015) Page-related settings • SQL debugging0 码力 | 235 页 | 370.31 KB | 2 年前3
julia 1.10.10For a complete list of every Julia operator's precedence, see the top of this file: src/julia-parser.scm. Note that some of the operators there are not defined in the Base module but may be given definitions respectively, just after and just before newlines within the string. x Tells the regular expression parser to ignore most whitespace that is neither backslashed nor within a character class. You can use this its second in a per-module dictionary called META. To make it easier to write documentation, the parser treats the macro name @doc specially: if a call to @doc has one argument, but another expression0 码力 | 1692 页 | 6.34 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.10Arguments Multiple Values & Lists Other Destinations Argument Locations Multiple Locations Parser Inheritance Error Handling Error Messages Output Fields Basic Usage Renaming Attributes Default org/dev/library/argparse.html]. parser = reqparse.RequestParser() parser.add_argument('rate', type=int, help='Rate to charge for this') resource') args = parser.parse_args() ## Note strict=True ensures that an error is thrown if the request includes arguments your parser does not define. args = parser.parse_args(strict=True) ## Data Formatting By default, all fields in your return0 码力 | 42 页 | 84.60 KB | 2 年前3
理解Python中的AST 何翔宇 [Image](/uploads/documents/5/9/e/6/59e68531752533e340d762f6eb19e725/p4_2.jpg) source code: 文本形式的 Python 源码 parser tree: 保留具体语法信息的树 AST: 对语法的高度抽象,不会保留细节 CFG: 记录着程序流程的有向图 bytecode: 能够被 Python 解释器使用的源码  ## I ntro CPython's Compiler - parser source code parse parse tree ## - 解码 - PEP 263 -- Defining Python Source Code Encodings - PEP ## - 分词器(Tokenize) ... >>> import parser - keyword >>> st = parser.expr("print('hello world')") >>> parser.st2tuple(st) (258, (331, (305, (309, (310, (3110 码力 | 39 页 | 6.95 MB | 2 年前3
Peering Forward: C++'s Next Decadets/e/8/2/4/e824484ec02995430aad71c2a66a8be7/p14_1.jpg) P2996 example: Basic command-line option parser Thanks to Matuš Chochlík! struct MyOptions { std::string file_name = "input.txt"; // [Image](/uploads/documents/e/8/2/4/e824484ec02995430aad71c2a66a8be7/p58_2.jpg) rt_interface (user code) COM IDL-style extensions [ object, uuid(a03d1420-b1ec-11d0-8c3a-00c04fc31d2f), ] interface IFoo : IInspectable e824484ec02995430aad71c2a66a8be7/p60_1.jpg) When you can’t express it all in C++ code C++/WinRT IDL (like COM)  Proposed0 码力 | 84 页 | 6.21 MB | 1 年前3
Python 标准库参考指南 2.7.18 371 13.1 csv — CSV 文件读写 ..... 371 13.2 ConfigParser — Configuration file parser ..... 379 13.3 robotparser — Parser for robots.txt ..... 386 13.4 netrc — netrc 文件处理 ..... 387 13.5 xdrlib — 编码与解码 argparse — 命令行选项、参数和子命令解析器 ..... 444 15.5 optparse — 解析器的命令行选项 ..... 473 15.6 getopt — C-style parser for command line options ..... 501 15.7 模块 logging — Python 的日志记录工具 ..... 503 15.8 logging.config 819 19 结构化标记处理工具 821 19.1 HTMLParser—Simple HTML and XHTML parser 821 19.2 sgmllib—Simple SGML parser 826 19.3 htmllib—A parser for HTML documents 829 19.4 htmlentitydefs—Definitions of HTML0 码力 | 1552 页 | 7.42 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Primitive C++IDL ParserFlatsSpanC++LexerParserGostatesactionsJSON解析器Boost.JSON类型安全错误处理快速解析JuliaparserGC heuristicssegfaultsversioninfophpMyAdminMySQLMariaDBConfiguration storageSQL parserv1.10.10garbage collectorprecompilationFlask-RESTfulREST APIResourcefieldsrequest parserASTast模块语法树节点遍历符号表C++26/29std::execution类型和内存安全反射与代码生成Contracts标准库内置函数内置类型模块异常













