Re: s-line-prefix(n,c) in Spec 1.2
Oren Ben-Kiki <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CADJiDhuQ-s479-JWZwwi4ihWJdb1wwr-hzh5X-RnCH9fZeG4gw@mail.gmail.com> |
Look for example at production 178. Basically instead of having 4 different productions s-line-prefix-when-block-in, s-line-prefix-when-block-out, s-line-prefix-when-flow-in, s-line-prefix-when-flow-out we have a single production with a parameter. When the parameter is "n" we write one production instead of an infinite number (production-when-n-is-0, production-when-n-is-1, ...). On Fri, Jul 19, 2013 at 4:39 AM, Jianjun Mao <[email protected]> wrote: > Hi all, > > I'm going to write my own parser for YAML. > But now I can't understand the following production. > What does this mean? c = block-out => s-block-line-prefix(n)<http://www.yaml.org/spec/1.2/spec.html#s-block-line-prefix(n)> and > what are "block-out" and "block-in" ? > Can anyone explain this clearly to me? > > [67]s-line-prefix(n,c) ::=c = block-out => s-block-line-prefix(n)<http://www.yaml.org/spec/1.2/spec.html#s-block-line-prefix(n)> > c = block-in => s-block-line-prefix(n)<http://www.yaml.org/spec/1.2/spec.html#s-block-line-prefix(n)> > c = flow-out => s-flow-line-prefix(n)<http://www.yaml.org/spec/1.2/spec.html#s-flow-line-prefix(n)> > c = flow-in => s-flow-line-prefix(n)<http://www.yaml.org/spec/1.2/spec.html#s-flow-line-prefix(n)> > Thanks. > Jinjun > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Yaml-core mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/yaml-core > > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Yaml-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/yaml-core