mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-10-21 18:09:58 -04:00
adding pegmarkdown support library.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5953 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4413536926
commit
3be22536df
107 changed files with 20038 additions and 0 deletions
8
supportlibs/pegmarkdown/peg-0.1.9/examples/accept.peg
Normal file
8
supportlibs/pegmarkdown/peg-0.1.9/examples/accept.peg
Normal file
|
@ -0,0 +1,8 @@
|
|||
start <- abcd+
|
||||
|
||||
abcd <- 'a' { printf("A %d\n", yypos); } bc { printf("ABC %d\n", yypos); } &{YYACCEPT}
|
||||
/ 'b' { printf("B %d\n", yypos); } cd { printf("BCD %d\n", yypos); } &{YYACCEPT}
|
||||
|
||||
bc <- 'b' { printf("B %d\n", yypos); } 'c' { printf("C %d\n", yypos); }
|
||||
|
||||
cd <- 'c' { printf("C %d\n", yypos); } 'd' { printf("D %d\n", yypos); }
|
Loading…
Add table
Add a link
Reference in a new issue