Changeset 4 for trunk/YamlReference
- Timestamp:
- 05/23/07 19:47:51 (20 months ago)
- Location:
- trunk/YamlReference
- Files:
-
- 12 added
- 13 removed
- 3 modified
-
Text/Yaml/Reference.bnf (modified) (1 diff)
-
Text/Yaml/Reference.hs (modified) (2 diffs)
-
YamlReference.cabal (modified) (1 diff)
-
tests/c-ns-properties.n=0.c=block-out.error (deleted)
-
tests/c-ns-properties.n=0.c=flow-out.error (deleted)
-
tests/c-ns-properties.n=0.c=flow-out.invalid.error (deleted)
-
tests/s-l+block-collection.n=2.c=block-in.sequence.input (added)
-
tests/s-l+block-collection.n=2.c=block-in.sequence.output (added)
-
tests/s-l+block-collection.n=2.c=block-out.invalid.input (added)
-
tests/s-l+block-collection.n=2.c=block-out.invalid.output (added)
-
tests/s-l+block-collection.n=2.c=block-out.mapping.input (added)
-
tests/s-l+block-collection.n=2.c=block-out.mapping.output (added)
-
tests/s-l+block-content.n=2.c=block-in.sequence.input (deleted)
-
tests/s-l+block-content.n=2.c=block-in.sequence.output (deleted)
-
tests/s-l+block-content.n=2.c=block-out.folded.input (deleted)
-
tests/s-l+block-content.n=2.c=block-out.folded.output (deleted)
-
tests/s-l+block-content.n=2.c=block-out.invalid.input (deleted)
-
tests/s-l+block-content.n=2.c=block-out.invalid.output (deleted)
-
tests/s-l+block-content.n=2.c=block-out.literal.input (deleted)
-
tests/s-l+block-content.n=2.c=block-out.literal.output (deleted)
-
tests/s-l+block-content.n=2.c=block-out.mapping.input (deleted)
-
tests/s-l+block-content.n=2.c=block-out.mapping.output (deleted)
-
tests/s-l+block-node.n=-1.c=block-out.input (added)
-
tests/s-l+block-node.n=-1.c=block-out.output (added)
-
tests/s-l+block-scalar.n=2.c=block-out.folded.input (added)
-
tests/s-l+block-scalar.n=2.c=block-out.folded.output (added)
-
tests/s-l+block-scalar.n=2.c=block-out.literal.input (added)
-
tests/s-l+block-scalar.n=2.c=block-out.literal.output (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/YamlReference/Text/Yaml/Reference.bnf
r3 r4 653 653 s_l__flow_in_block n = s_separate n FlowOut & ns_flow_node (n .+ 1) FlowOut & s_l_comments 654 654 s_l__block_in_block n c = nest BeginNode 655 & ( s_separate n c & c_ns_properties n c ?) 656 & s_l__block_content n c 655 & ( s_l__block_scalar n c / s_l__block_collection n c ) 657 656 & nest EndNode 658 s_l__block_content n c = s_separate n c & c_l__literal n 659 / s_separate n c & c_l__folded n 660 / s_l_comments & l__block_sequence (seq_spaces n c) 661 / s_l_comments & l__block_mapping n 657 658 s_l__block_scalar n c = s_separate n c & ( c_ns_properties n c & s_separate n c ?) 659 & ( c_l__literal n / c_l__folded n ) 660 s_l__block_collection n c = ( s_l_comments / ( s_separate n c & c_ns_properties n c & s_l_comments ) ) 661 & ( l__block_sequence (seq_spaces n c) / l__block_mapping n ) 662 662 663 663 -- Document: -
trunk/YamlReference/Text/Yaml/Reference.hs
r3 r4 470 470 -- that it is that easy to draw the line - is @sLine@ generic or specific?). 471 471 data State = State { 472 sName :: !String, -- ^ The input name for error messages.473 sEncoding :: !Encoding, -- ^ The input UTF encoding.474 sDecision :: !String, -- ^ Current decision name.475 sLimit :: !Int, -- ^ Lookahead characters limit.476 sForbidden :: !(Maybe Pattern), -- ^ Pattern we must not enter into.477 sIsPeek :: !Bool, -- ^ Disables token generation.478 sChars :: ![Char], -- ^ (Reversed) characters collected for a token.479 sOffset :: !Int, -- ^ Offset in characters in the input.480 sLine :: !Int, -- ^ Builds on YAML's line break definition.481 sColumn :: !Int, -- ^ Actually character number - we hate tabs.482 sCode :: !Code, -- ^ Of token we are collecting chars for.483 sLast :: !Char, -- ^ Last matched character.484 sInput :: ![Char] -- ^ The decoded input characters.472 sName :: !String, -- ^ The input name for error messages. 473 sEncoding :: !Encoding, -- ^ The input UTF encoding. 474 sDecision :: !String, -- ^ Current decision name. 475 sLimit :: !Int, -- ^ Lookahead characters limit. 476 sForbidden :: !(Maybe Pattern), -- ^ Pattern we must not enter into. 477 sIsPeek :: !Bool, -- ^ Disables token generation. 478 sChars :: ![Char], -- ^ (Reversed) characters collected for a token. 479 sOffset :: !Int, -- ^ Offset in characters in the input. 480 sLine :: !Int, -- ^ Builds on YAML's line break definition. 481 sColumn :: !Int, -- ^ Actually character number - we hate tabs. 482 sCode :: !Code, -- ^ Of token we are collecting chars for. 483 sLast :: !Char, -- ^ Last matched character. 484 sInput :: ![Char] -- ^ The decoded input characters. 485 485 } 486 486 … … 1414 1414 $ PAT(ns_s_flow_map_entries) 1415 1415 $ PAT(ns_s_flow_seq_entries) 1416 $ PAT(s_l__block_co ntent)1416 $ PAT(s_l__block_collection) 1417 1417 $ PAT(s_l__block_in_block) 1418 1418 $ PAT(s_l__block_indented) 1419 1419 $ PAT(s_l__block_node) 1420 $ PAT(s_l__block_scalar) 1420 1421 $ PAT(s_ns_flow_map_explicit_empty) 1421 1422 $ PAT(s_ns_flow_map_explicit_entry) -
trunk/YamlReference/YamlReference.cabal
r3 r4 23 23 \"immediately\" begin to generate output. The memory leak that 24 24 existed in previous version has been plugged. 25 Build-Depends: base >= 2.0, HUnit >= 1.1, regex-compat >= 0.71, dlist >= 0.2 25 Build-Depends: base >= 2.0, HUnit >= 1.1, regex-compat >= 0.71, dlist >= 0.2, mtl 26 26 Exposed-Modules: Text.Yaml.Reference 27 27 Extensions: CPP, MultiParamTypeClasses
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)