* xmlParseCRNG_patternBlock: * @ctxt: a compact RNG parser context * * Parse a pattern block of the RELAX NG Compact Syntax Appendix A * * Returns 0 in case of success and -1 in case of error */
| 795 | * Returns 0 in case of success and -1 in case of error |
| 796 | */ |
| 797 | static int |
| 798 | xmlParseCRNG_patternBlock(xmlCRelaxNGParserCtxtPtr ctxt) |
| 799 | { |
| 800 | tokenPtr token; |
| 801 | |
| 802 | token = xmlParseCRNGGetToken(ctxt, 1); |
| 803 | if ((token->toktype != CRNG_OP) || |
| 804 | (token->token[0] != '{') || (token->token[1] != 0)) { |
| 805 | ERROR("Expecting \"{\" here"); |
| 806 | } |
| 807 | xmlParseCRNGDropTokens(ctxt, 1); |
| 808 | xmlParseCRNG_pattern(ctxt); |
| 809 | token = xmlParseCRNGGetToken(ctxt, 1); |
| 810 | if ((token->toktype != CRNG_OP) || |
| 811 | (token->token[0] != '}') || (token->token[1] != 0)) { |
| 812 | ERROR("Expecting \"}\" here"); |
| 813 | } |
| 814 | xmlParseCRNGDropTokens(ctxt, 1); |
| 815 | return(0); |
| 816 | } |
| 817 | |
| 818 | /** |
| 819 | * xmlParseCRNG_datatype: |
no test coverage detected