{ theStart = GETCHARINDEX(); }
( ~(']') )+
{ $start = theStart; EMIT(); }
RBRACK
)
;
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http
few days trying to learn
things as deeply as possible ...
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman
...
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http
On 11/18/11 5:12 PM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http
);
// RZ added this to see if this fixes grow of RAM.
ADAPTOR-tokenFactory-reset( ADAPTOR-tokenFactory );
((pANTLR3_COMMON_TREE_ADAPTOR)(ADAPTOR-super))-arboretum-reset(
(ADAPTOR-super))-arboretum);
}
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
);
// Reset the lexer (new function generated by antlr now)
//
lxr-reset(lxr);
// Reset the parser (new function generated by antlr now)
//
psr-reset(psr);
}
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software
be one of hidden
bottleneck IMO. You can workaround this, if also will extract pointers into
single separate structure, so instances will have just a single pointer.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds
regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman
regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman
);
mpParser -reset( mpParser );
ResetOwnData( mpParser );
}
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org
On 11/16/11 6:00 PM, Jim Idle j...@temporal-wave.com wrote:
xxx: s=HEX_NUMBER { $s.type = CONST_STR_HEX; } ;
Jim,
This gives error as
SqlParser_v3.g:879:21: cannot write to read only attribute: $u.type
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma
.txt
If I drag and drop file
This is common practice for MAC OS for example.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http
and it is a trivial
matter for you to call mismatch indirectly instead of directly in your
code.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed
only ONE that function should be overriden?
I think in Docs, Books, Comments, this should be explained also in clean
way. Right?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I
-read book section. But there only Java code ..
Have check C target docs ‹ nothing about recover ...
Have try search email list ‹ so far nothing useful found...
I think C target docs should have example code ...
Because very different to Java ... No exceptions ...
--
Best regards,
Ruslan
to copy the mismatch locally or call it via a pointer (if it is in
the interface, but I think it is not).
Jim
*From:* Ruslan Zasukhin [mailto:ruslan_zasuk...@valentina-db.com]
*Sent:* Thursday, October 20, 2011 2:30 PM
*To:* Jim Idle
*Subject:* [C target][HEELP :-] About disable recovery
On 10/21/11 12:41 AM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
You need to copy the mismatch locally or call it via a pointer (if it is in
the interface, but I think it is not).
Jim,
This not works, because mismatch() calls other static hidden functions.
Oops ... E.g.
error
for v3?
In examples of ANTLR I have not found any that use imaginary tokens btw...
Thank you for any ideas...
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need
...@antlr.org [mailto:antlr-interest-
boun...@antlr.org] On Behalf Of Ruslan Zasukhin
Sent: Wednesday, October 12, 2011 11:05 AM
To: antlr-interest@antlr.org
Subject: [antlr-interest] Advice on best practice?
Hi All, Terrence, Jim,
I have review FAQs, other docs and list ...
But sop far cannot find
;
}
But what is official point of view at current state ?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http
On 10/12/11 9:04 PM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
Hi All, Terrence, Jim,
I have review FAQs, other docs and list ...
But sop far cannot find isolated advices/tips of kind
* Tend develop grammar as k=1
AVOID to use k=*, because this is slower
and
be consistent for all targets
Java
String JointTextOfTokens(
Token inStartToken,
Token inEndToken )
{
}
c:
pANTLR3_STRING JointTextOfTokens(
Token* inStartToken,
Token* inEndToken )
{
}
This can save many hours to users of your product.
--
Best regards,
Ruslan
not.
Then question is:
how this can be solved using minimal copies?
Or you think that better really use
Lexer - Parser - TreeParser combination ?
On 9/28/11 1:34 AM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
On 9/28/11 12:46 AM, Douglas Godfrey douglasgodf...@gmail.com
() can help me,
But I cannot see how I can call that from my
- ^( CONST_STR[ st.c_str() ] )
???
Thank you for points ...
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
all that tokens in the array.
You have give nice idea join them in the TreeParser.
Yes, indeed this can work... So I will play now with this way.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http
: QuotedString
{RemoveQuotePairs($QuotedString);};
fragment
QuotedString: ( StringTerm )+;
fragment
StringTerm: Dquote ( Character )* Dquote;
fragment
Character: ( ' ' | AlphaChar | Punctuation | Digit );
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software
On 9/11/11 9:12 PM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
For history:
#pragma GCC diagnostic ignored -Wunused-label
On some reason do not works
I was able fix warnings from generated files and antrl.c files
In the xcode
* Selecting .c files
* Get Info - Build panel
* Add
, not big deal may be, but will simplify usage of ANTLR3 from box.
I could read in ANTLR 3.5:
just install displayRecognitionError_throw, and your parser
will start throw C++ exceptions.
30 seconds deal, instead of two days and still in doubts ...
--
Best regards,
Ruslan Zasukhin
VP
, :-)
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org
?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http
On 8/30/11 4:17 PM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
If I call
input = antlr3StringStreamNew(
input_string, Encoding, input_len, NULL );
NULL is name of stream
Then it crashes inside of
newStr8(pANTLR3_STRING_FACTORY factory
://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman
((const char *)ptr)); crash
}
Because on mac and linux strlen() crashes on NULL.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed
://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel
it, there is no
antlr-3.4/lib
Lost ?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr
.
The tools no not interface with a compiler backend or machine code generator.
I see.
Thanks.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need
Hi All,
Have never look deeply on LLVM yet,
But have got fast question
Anybody can give his vision about
* how ANTLR refer to LLVM?
* If they can collaborate?
* should I use or drop ANTLR if we will want start to use LLVM?
And so on
--
Best regards,
Ruslan Zasukhin
VP Engineering and New
.
But ... It seems they compare to old version of ANTLR ..
http://www.semanticdesigns.com/products/DMS/DMSComparison.html
I wonder, if anybody have any comments about them?
At least privately
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
start to use LLVM?
llvm doesn't provide what antlr provides.
==
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List
(or sql.g.xml, php.g.xml )
Which will contain language from .g expressed in XML format...
And may be reverse task XML to .g
Strange task? :) I know ...
sometime late this summer I am hoping to have early access
Ter
On Jun 10, 2011, at 2:22 AM, Ruslan Zasukhin wrote:
On 6/10/11 12
any EDITOR app can use later ?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
ANTLR in this way.
This will open new roads for its usage probably.
And this can be for us - users of ANTLR as easy as
Option output = XML
What you think ?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds
special example/test of this in that snapshoot?
* does exists any special example/test of this in the official archive of
ANTLR3?
* how many weeks you think? Worse case?
* any chance to get this working using official release 3.3?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New
--
===
Regards
Ronghui Yu
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
destroy all objects (tokens, ast) at once.
Reuse() will destroy not needed objects?
Btw, this is great to have own mempool.
I believe in v2 I have see that tons of destructor calls for each item...
Profiles did show 5-10% for destructors...
--
Best regards,
Ruslan Zasukhin
VP Engineering
QUOTE QUOTE.
So lexer will send to parser Token ( 'aaa''bbb''ccc' )
But should sent Token ( aaa'bbb'ccc )
Or I do smoke wrong staff??? :-)
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http
?
Then for RARE case-sensitive , it will be great to automated way.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman
On 4/17/11 11:06 AM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
but basically it is easy to strip
leading and trailing characters as the tokens carry pointers, so get the
start pointer, increment it, get the end point, decrement it, now
Do not use the built in $token.text-chars
we cannot do just ++ \ --
I do not see yet the whole picture how works lexer on low level in C.
Also I do not see yet any clean information about UTF encodings in C-target.
I am going ask about this in future letters.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New
)
;
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org
quotes around IDENT, and in case of inside we have
skiped second.
I have spent few hours to try found analog for v3 and no success.
All v3 grammars I have check, DO NOT ignore any symbols.
Why?
How to remove that quotes in v3? :-)
--
Best regards,
Ruslan Zasukhin
VP Engineering and New
with strings ??
Somehow not best of the best?
May be it is good idea RETURN BACK
that simple way to skip that chars right in lexer?
On Sat, Apr 16, 2011 at 12:06 PM, Ruslan Zasukhin
ruslan_zasuk...@valentina-db.com wrote:
...
How to remove that quotes in v3? :-)
Here's a way
/pages/viewpage.action?pageId=1844
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
, pFirstQuote + 2,
CharsToMove );
// prepare for possible next loop:
pStart = pFirstQuote + 1;
pStr-len--;
}
SETTEXT( pStr );
}
;
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
, the names of tokens literals in V2 had a Literal_ prefix in
their names
Yes, in C++ code ... Yes
But in the error messages was quite correct names of tokens ... It seems
For example
expected from
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software
and also an ast operator
As I understand,
- is re-write syntax
^is AST operator ...
Matt
On Sun, Mar 20, 2011 at 10:40 AM, Ruslan Zasukhin
ruslan_zasuk...@valentina-db.com wrote:
Hi All,
In v2 grammar we have rule
On 3/22/11 8:11 PM, Ruslan Zasukhin ruslan_zasuk...@valentina-db.com
wrote:
IF to remove ^ ( union | except )^
query_expression
: query_term (( union | except ) all? query_term)*
- ^(QUERY_EXPRESSION $query_expression)
then all looks correct, but tree is empty from
stream
as in the example below and specify all your keyword/lexer tokens in UPPER
CASE only
JOIN above is that UPPER CASE example?
I ask because 'join' above still is in low case ...
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org
will be your advice:
jump in nearest months to v3, and later this will move smooth
to v4 also. Or just wait for v4 to avoid too big transfers?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http
60 matches
Mail list logo