The Swift Programming LanguageAbout the Language Reference This part of the book describes the formal grammar of the Swift programming language. The grammar described here is intended to help you understand the language in more detail How to Read the Grammar The notation used to describe the formal grammar of the Swift programming language follows a few conventions: An arrow ( $ \rightarrow $ ) is used to mark grammar productions and of a grammar production rule. Literal words and punctuation are indicated by boldface constant width text and appear only on the right-hand side of a grammar production rule. Alternative grammar productions0 码力 | 525 页 | 4.68 MB | 2 年前3
The Swift Programming Language (Swift 5.7) - Apps DissectedAbout the Language Reference This part of the book describes the formal grammar of the Swift programming language. The grammar described here is intended to help you understand the language in more detail How to Read the Grammar The notation used to describe the formal grammar of the Swift programming language follows a few conventions: • An arrow ( $ \rightarrow $ ) is used to mark grammar productions and appear on both sides of a grammar production rule. • Literal words and punctuation are indicated by boldface constant width text and appear only on the right-hand side of a grammar production rule. • Alternative0 码力 | 1040 页 | 10.90 MB | 2 年前3
Kotlin language specification
Version 1.9-rfc+0.1specification Version 1.9-rfc+0.1 Marat Akhin Mikhail Belyaev # Chapter 1 # Syntax and grammar ### 1.1 Notation This section uses a BNF-based notation similar to EBNF with the following conventions: concatenation or termination and does not use some of the additional notation symbols ### 1.2 Lexical grammar #### 1.2.1 Whitespace and comments LF:'>=' EXCL_EQ: '!=' EXCL_EQEQ: '!===' AS_SAFE: 'as?' #### 1.2. LEXICAL GRAMMAR EQEQ: $ = $ EQEQEQ: $ == $ SINGLE QUOTE: RETURN AT: 'return@ Identifier CONTINUE 0 码力 | 38 页 | 358.59 KB | 2 年前3
Expressive Compile-time Parsersparse_int ## Parser Generators Create a parser from a grammar. Popular parsing algorithms used in generators are LL, LL(k), LR, LR(k), LALR, GLR... EBNF grammar example: identifier = alphabetic character, { metafunctions::get<_STR("times4")> times4; ## Boost Metaparse - Grammar ## Create a parser from grammar rules typedef grammar<_STR("plus_exp")> ::rule<_STR("int ::= ('0' pop_front(empty_list) -> empty_list; ## CTRE – LL(1) Parser ## The grammar rules lookup table is implemented as empty structures and function overloads struct pcre {0 码力 | 134 页 | 1.73 MB | 1 年前3
Kotlin language specification
Version 1.9-rfc+0.1Syntax and grammar 7 1.1 Notation 7 1.2 Lexical grammar 7 1.2.1 Whitespace and comments 7 1.2.2 Keywords and operators 8 1.2.3 Literals 15 1.2.4 Identifiers 16 1.2.5 String mode grammar 18 1 1.2.6 Tokens 19 1.3 Syntax grammar 23 1.4 Documentation comments 42 2 Type system 43 Glossary 43 Introduction 44 2.1 Type kinds 45 2.1.1 Built-in types 46 kotlin.Any 46 kotlin.Nothing language specification: Kotlin/Core”, JetBrains / JetBrains Research, 2020 # Chapter 1 # Syntax and grammar ### 1.1 Notation This section uses a BNF-based notation similar to EBNF with the following conventions:0 码力 | 310 页 | 1.39 MB | 2 年前3
Nim 2.0.8 Manualthat requires the parser to try the alternatives in the given order. / is often used to ensure the grammar is not ambiguous. Non-terminals start with a lowercase letter, abstract terminal symbols are in these forms can be used equally, regardless of the platform. ## I ndentation Nim's standard grammar describes an indentation sensitive language. This means that all the control structures are recognized then implies to push onto the stack. With this notation we can now easily define the core of the grammar: A block of statements (simplified example): if Stmt = 'if' expr ':' stmt (IND{=}0 码力 | 132 页 | 5.73 MB | 1 年前3
Kotlin Language Documentation 1.3Type-Safe Builders 306 Experimental API Markers 313 Reference 319 Keywords and Operators 319 Grammar 325 Java Interop 344 Calling Java code from Kotlin 344 Calling Kotlin from Java 358 was built on the concept of layered graphics first described in Leland Wilkinson's work The Grammar of Graphics and later implemented in the ggplot2 package for R. Lets-Plot for Kotlin is tightly imports, each file may contain its own import directives. Syntax for imports is described in the grammar. We can import either a single name, e.g. import org.example.Message // Message is now accessible0 码力 | 597 页 | 3.61 MB | 2 年前3
1 Beautiful PythonRestricting Python's grammar to an LL(1) parser is a blessing, not a curse. It puts us in handcuffs that prevent us from going overboard and ending up with funky grammar rules like some other dynamic Restricting Python's grammar to an LL(1) parser is a blessing, not a curse. It puts us in handcuffs that prevent us from going overboard and ending up with funky grammar rules like some other dynamic0 码力 | 109 页 | 34.99 MB | 2 年前3
Computer Programming with the Nim Programming Languagecould have potentially been created by GPT, resulting in a more fluent tone and fewer spelling and grammar errors. $ ^{[2]} $ As such, this book, or at least parts of it, could now be considered obsolete text, so you could feed ChatGPT a section from this book, and then request a rewrite for improved grammar or even expanded content. Some possible tasks you can ask ChatGPT to do: • Do you know the Nim programming like string pattern matching with regular expressions (regex) or by use of the parsing expression grammar (PEG). We will start with the STRUTILS module, which is one of the most used modules of the Nim standard0 码力 | 512 页 | 3.50 MB | 1 年前3
Computer Programming with the Nim Programming Languagecould have potentially been created by GPT, resulting in a more fluent tone and fewer spelling and grammar errors. $ ^{[2]} $ As such, this book, or at least parts of it, could now be considered obsolete text, so you could feed ChatGPT a section from this book, and then request a rewrite for improved grammar or even expanded content. Some possible tasks you can ask ChatGPT to do: • Do you know the Nim programming like string pattern matching with regular expressions (regex) or by use of the parsing expression grammar (PEG). We will start with the strutils module, which is one of the most used modules of the Nim standard0 码力 | 508 页 | 3.50 MB | 1 年前3
共 541 条
- 1
- 2
- 3
- 4
- 5
- 6
- 55
相关搜索词
Swift programming languagegrammarclassesstructurescontrol flowSwift编程语言类型系统版本兼容性安全Kotlin language specificationannotationslexicallymultiline stringidentifierExpressive Compile-time ParsersMetaprogramming TricksAPI DesignReflectionDomain Specific LanguagesKotlinmultiplatformtype systemsyntaxcompatibilityGuardsLocksModule systemIdentifiersString typeKotlin 1.3coroutinesmultiplatform projectsbehavioral-incompatiblesource-incompatiblePython生成器函数命名空间Zen of PythonThoughtWorksNim编程语言工具支持语言特点学习资源编程教育高性能静态类型模块化概念标准库













