"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uppsrc/Core/src.tpp/CParser_en-us.tpp" between
upp-x11-src-13659.tar.gz and upp-x11-src-13664.tar.gz

About: Ultimate++ is a C++ cross-platform rapid application development framework. Stable release.

CParser_en-us.tpp  (upp-x11-src-13659):CParser_en-us.tpp  (upp-x11-src-13664)
topic "CParser"; topic "CParser";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] [i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,0#27521748481378242620020725143825:desc] [l288;2 $$2,0#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end] [0 $$3,0#96390100711032703541132217272105:end]
[H6;0 $$4,0#05600065144404261032431302351956:begin] [H6;0 $$4,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] [i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] [l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] [l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] [i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal] [b42;2 $$9,9#13035079074754324216151401829390:normal]
[2 $$0,0#00000000000000000000000000000000:Default]
[{_} [{_}
[ {{10000@(113.42.0) [s0;%% [*@7;4 CParser]]}}&] [ {{10000@(113.42.0) [s0;%% [*@7;4 CParser]]}}&]
[s3; &] [s3; &]
[s1;:CParser`:`:class: [@(0.0.255) class]_[* CParser]&] [s1;:CParser`:`:class: [@(0.0.255) class]_[* CParser]&]
[s9;%% CParser is simple yet very useful lexical analyzer suitable [s9;%% CParser is simple yet very useful lexical analyzer suitable
for building descent parsers of languages with C`-like syntax.&] for building descent parsers of languages with C`-like syntax.&]
[s9;%% CParser works on `'`\0`' terminated text in memory (not Stream), [s9;%% CParser works on `'`\0`' terminated text in memory (not Stream),
so to parse the file you have to load it into the memory first. so to parse the file you have to load it into the memory first.
Text has to exist during the time it is processed by CParser Text has to exist during the time it is processed by CParser
(no copy is made).&] (no copy is made).&]
skipping to change at line 395 skipping to change at line 395
[s4; &] [s4; &]
[s5;:CParser`:`:operator bool`(`)const: [* operator_bool]()_[@(0.0.255) const]&] [s5;:CParser`:`:operator bool`(`)const: [* operator_bool]()_[@(0.0.255) const]&]
[s2; Returns [* true ]if end of file has not been reached, [* false ]otherwise.& ] [s2; Returns [* true ]if end of file has not been reached, [* false ]otherwise.& ]
[s3; &] [s3; &]
[s4; &] [s4; &]
[s5;:CParser`:`:GetLine`(`)const: [@(0.0.255) int]_[* GetLine]()_[@(0.0.255) con st]&] [s5;:CParser`:`:GetLine`(`)const: [@(0.0.255) int]_[* GetLine]()_[@(0.0.255) con st]&]
[s2; Returns the current line number.&] [s2; Returns the current line number.&]
[s3; &] [s3; &]
[s4; &] [s4; &]
[s5;:CParser`:`:GetColumn`(int`)const: [@(0.0.255) int]_[* GetColumn]([@(0.0.255 ) int]_[*@3 t [s5;:CParser`:`:GetColumn`(int`)const: [@(0.0.255) int]_[* GetColumn]([@(0.0.255 ) int]_[*@3 t
absize])_[@(0.0.255) const]&] absize]_`=_[@3 4])_[@(0.0.255) const]&]
[s2;%% Returns the current column, with given [%-*@3 tabsize].&] [s2;%% Returns the current column, with given [%-*@3 tabsize].&]
[s3;%% &] [s3;%% &]
[s4; &] [s4; &]
[s5;:CParser`:`:GetFileName`(`)const: [_^String^ String]_[* GetFileName]()_[@(0. 0.255) cons [s5;:CParser`:`:GetFileName`(`)const: [_^String^ String]_[* GetFileName]()_[@(0. 0.255) cons
t]&] t]&]
[s2; Returns the actual filename.&] [s2; Returns the actual filename.&]
[s3;%% &] [s3;%% &]
[s3; &] [s3; &]
[s4; &] [s4; &]
[s5;:CParser`:`:LineInfoComment`(const String`&`,int`,int`): [@(0.0.255) static] [s5;:CParser`:`:LineInfoComment`(const String`&`,int`,int`): [@(0.0.255) static]
[_^String^ String]_[* LineInfoComment]([@(0.0.255) const]_[_^String^ String][@(0 .0.255) `&]_ [_^String^ String]_[* LineInfoComment]([@(0.0.255) const]_[_^String^ String][@(0 .0.255) `&]_
[*@3 filename], [@(0.0.255) int]_[*@3 line]_`=_[@3 1], [@(0.0.255) int]_[*@3 col umn]_`=_[@3 1]) [*@3 filename], [@(0.0.255) int]_[*@3 line]_`=_[@3 1], [@(0.0.255) int]_[*@3 col umn]_`=_[@3 1])
&] &]
[s2;%% This function creates a special comment that when parsed by [s2;%% This function creates a special comment that when parsed by
CParser, switches filename and line number. This is supposed CParser, switches filename and line number. This is supposed
to help in situations when parsed text is actually a result of to help in situations when parsed text is actually a result of
e.g. include operations of some original files, to improve error e.g. include operations of some original files, to improve error
reporting. Not that such comment is lexically treated as comment. reporting. Such comment is lexically treated as comment. Comment
Comment is created using LINEINFO`_ESC characters begin/end delimiter is created using LINEINFO`_ESC characters begin/end delimiter
(current value is `'`\2`').&] (current value is `'`\2`').&]
[s3;%% &] [s3;%% &]
[s4; &] [s4; &]
[s5;:CParser`:`:GetLineInfoComment`(int`)const: [_^String^ String]_[* GetLineInf oComment]( [s5;:CParser`:`:GetLineInfoComment`(int`)const: [_^String^ String]_[* GetLineInf oComment](
[@(0.0.255) int]_[*@3 tabsize]_`=_[@3 4])_[@(0.0.255) const]&] [@(0.0.255) int]_[*@3 tabsize]_`=_[@3 4])_[@(0.0.255) const]&]
[s2;%% Calls LineInfoComment(GetFileName(), GetLine(), GetColumn([%-*@3 tabsize] )) [s2;%% Calls LineInfoComment(GetFileName(), GetLine(), GetColumn([%-*@3 tabsize] ))
`- creates a comment to identify current file position in further `- creates a comment to identify current file position in further
processing.&] processing.&]
[s3; &] [s3; &]
[s4; &] [s4; &]
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)