Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch pt-work Excluding Merge-Ins
This is equivalent to a diff from 5e04b0e29a to af55e30def
2014-07-21
| ||
18:57 | Merged work on the parsetools into trunk. Very extended testsuite, and lots of bugfixes, especially in the area of error handling. Also fixes in the C runtime and generated code where long/void* size mismatches caused crashing. check-in: 598ddec2b2 user: andreask tags: trunk | |
2014-06-28
| ||
21:41 | Bring examples up to date with latest parser fixes and changes. check-in: 75d8a9a9c7 user: aku tags: pt-examples | |
21:18 | pt::parse::peg (C) - Updated with the fixes to the C generator. Updated all testsuite results with the same fixes. Closed-Leaf check-in: af55e30def user: aku tags: pt-work | |
21:17 | pt::rdengine (C) - Fixed the generation of error messages by the dynamic C runtime, i.e. made it generate proper lists. check-in: 5eca9d6009 user: aku tags: pt-work | |
2014-06-23
| ||
19:19 | amazon-s3, xsxp [2974624fff] Fixed bad example in documentation. check-in: 749a54b5ef user: andreask tags: trunk | |
2014-06-21
| ||
00:14 | Got latest changes from trunk check-in: 4689b3f226 user: andreask tags: pt-work | |
00:05 | Updated the embedded documentation for today's changes check-in: 5e04b0e29a user: andreask tags: trunk | |
2014-06-20
| ||
22:37 | fileutil :: [659fec4826]. Simplified TempFile a bit more Dropped bogus use of TRUNC. Removed superflous check implied by EXCL. Removed irrelevant loop delay. check-in: 9520c7d9d7 user: andreask tags: trunk | |
Changes to apps/pt.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | - + + + - + | #!/usr/bin/env tclsh # -*- tcl -*- package require Tcl 8.5 # activate commands below for execution from within the pt directory set self [file normalize [info script]] set selfdir [file dirname $self] lappend auto_path $selfdir [file dirname $selfdir] # When debugging package loading trouble, show the search paths #puts [join $auto_path \n] # # ## ### ##### ######## ############# ##################### |
︙ | |||
44 45 46 47 48 49 50 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + | exit 1 } } set prefix {INTERNAL ERROR :: } puts ${prefix}[join $elines \n$prefix] exit 1 } |
︙ | |||
71 72 73 74 75 76 77 78 79 80 81 82 83 84 | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | + | puts stderr "$argv0: Unknown help topic '$topic'" puts stderr "\tUse one of [linsert [join [Topics] {, }] end-1 or]" puts stderr "" } else { puts stderr \t[join [split [string map [list @ $argv0] [string trim [::pt::app::${topic}Help]]] \n] \n\t] puts stderr "" } return 0 } proc ::pt::app::Topics {} { namespace eval ::TEMP { namespace import ::pt::app::* } set commands [info commands ::TEMP::*] namespace delete ::TEMP |
︙ | |||
107 108 109 110 111 112 113 | 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | - + + - - - - - + + + + + + + + + + + + + + + + | if {[llength $args] < 4} { # Just enough that the help code can extract the method name return -code error "wrong # args, should be \"@ generate ...\"" } set args [lassign $args parserformat] |
︙ |
Changes to embedded/man/files/apps/pt.n.
︙ | |||
546 547 548 549 550 551 552 553 554 555 556 557 558 559 | 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 | + + + + | For a simple value \fBX\fR without colons, like CLASS, the parser command will be \fBX\fR::\fBX\fR\&. Whereas for a namespaced value \fBX::Y\fR the parser command will be \fBX::Y\fR\&. .TP \fB-package\fR string The value of this option is the name of the package to generate\&. The default value is \fBPACKAGE\fR\&. .TP \fB-version\fR string The value of this option is the version of the package to generate\&. The default value is \fB1\fR\&. .PP .SH "C PARSER" The \fBc\fR format is executable code, a parser for the grammar\&. The parser implementation is written in C and can be tweaked to the users' needs through a multitude of options\&. .PP The \fBcritcl\fR format, for example, is implemented as a canned |
︙ | |||
706 707 708 709 710 711 712 713 714 715 716 717 718 719 | 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 | + + + + | .TP \fB-package\fR string The value of this option is the name of the package to generate, without leading colons\&. Note, it serves double-duty as the name of the class to generate too, if option \fB-class\fR is not specified, see above\&. The default value is \fBPACKAGE\fR, applying if neither option \fB-package\fR nor \fB-class\fR were specified\&. .TP \fB-version\fR string The value of this option is the version of the package to generate\&. The default value is \fB1\fR\&. .PP .SH "TCLOO PARSER" The \fBoo\fR format is executable code, a parser for the grammar\&. It is a Tcl package holding a \fBTclOO\fR class, whose instances are parsers for the input grammar\&. .PP This result-format supports the following options: |
︙ | |||
740 741 742 743 744 745 746 747 748 749 750 751 752 753 | 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 | + + + + | .TP \fB-package\fR string The value of this option is the name of the package to generate, without leading colons\&. Note, it serves double-duty as the name of the class to generate too, if option \fB-class\fR is not specified, see above\&. The default value is \fBPACKAGE\fR, applying if neither option \fB-package\fR nor \fB-class\fR were specified\&. .TP \fB-version\fR string The value of this option is the version of the package to generate\&. The default value is \fB1\fR\&. .PP .SH "GRAMMAR CONTAINER" The \fBcontainer\fR format is another form of describing parsing expression grammars\&. While data in this format is executable it does not constitute a parser for the grammar\&. It always has to be used in conjunction with the package \fBpt::peg::interp\fR, a grammar interpreter\&. |
︙ |
Changes to embedded/man/files/modules/pt/pt_cparam_config_critcl.n.
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 | - + | '\" '\" Generated from file 'pt_cparam_config_critcl\&.man' by tcllib/doctools with format 'nroff' '\" Copyright (c) 2009 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net> '\" |
︙ | |||
272 273 274 275 276 277 278 | 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | - + - + | .. .BS .SH NAME pt::cparam::configuration::critcl \- C/PARAM, Canned configuration, Critcl .SH SYNOPSIS package require \fBTcl 8\&.5\fR .sp |
︙ | |||
297 298 299 300 301 302 303 | 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | - + - + | .PP It is a supporting package in the Core Layer of Parser Tools\&. .PP IMAGE: arch_core_support .PP .SH API .TP |
︙ |
Added embedded/man/files/modules/pt/pt_cparam_config_tea.n.