Quick Search:

jump to detailed chart Line History

line history graph

View Mode

Logical Physical

Show Arbitrary Diff

From to

Supports revisions and tags.

Watches and RSS

History

ANTLR3TemplatesJavaToC 4903 1965

latest revision download Branch ANTLR3TemplatesJavaToC

4903 annotated / raw | Diffs: previous, other | Lines: 615 ( +2, -1 )

Created: 2008-05-11 18:48:36 -0500 (4 days ago) | Author: parrt | Changeset: 4903

isolated rewrite from elements in alt; tweaked templates

4737 annotated / raw | Diffs: previous, other | Lines: 614 ( +16, -9 )

Created: 2008-04-01 23:08:15 -0500 (44 days ago) | Author: jimi | Changeset: 4737

Updates for parser debugger interface - first working version, a few bugs to fix up yet thoguh and the tree parser debugger isn't yet complete.

4683 annotated / raw | Diffs: previous, other | Lines: 607 ( +5, -8 )

Created: 2008-02-29 11:17:19 -0600 (2 months 15 days ago) | Author: jimi | Changeset: 4683

Check in template fixes for scope attribute references and over zealous type casting in tree rewrites.

4669 annotated / raw | Diffs: previous, other | Lines: 610 ( +30, -20 )

Created: 2008-02-25 15:20:16 -0600 (2 months 19 days ago) | Author: jimi | Changeset: 4669

Correct the code generation for Tree rewriting tree parsers. They wer always creating token rewrite streams, even when they should have been node rewriting streams.

4659 annotated / raw | Diffs: previous, other | Lines: 600 ( +13, -0 )

Created: 2008-02-24 13:27:51 -0600 (2 months 20 days ago) | Author: jimi | Changeset: 4659

Ensure memory for shared state is only ever freed by the root grammar, ensure only the root grammar allocates and frees the memoizing trie

4655 annotated / raw | Diffs: previous, other | Lines: 587 ( +83, -17 )

Created: 2008-02-23 20:39:05 -0600 (2 months 21 days ago) | Author: jimi | Changeset: 4655

Update for gcc C++ compatibility. Cast exception strings to (void) and avoid use of or abstraction by replacing with bor

4651 annotated / raw | Diffs: previous, other | Lines: 521 ( +8, -2 )

Created: 2008-02-23 19:58:17 -0600 (2 months 21 days ago) | Author: jimi | Changeset: 4651

Rearrange the way the token names table is generated as we only need one table, the master token name table for the root grammar, orf which there can be only one.

4642 annotated / raw | Diffs: previous, other | Lines: 515 ( +2, -3 )

Created: 2008-02-22 23:53:10 -0600 (2 months 22 days ago) | Author: jimi | Changeset: 4642

Predeclare typedef, but don;t try to typedef again as only MS compiler allows this.

4633 annotated / raw | Diffs: previous, other | Lines: 516 ( +10, -8 )

Created: 2008-02-22 17:07:35 -0600 (2 months 22 days ago) | Author: jimi | Changeset: 4633

Disable innocuous warning in C++ Visual Studio when output compiled as C++

4631 annotated / raw | Diffs: previous, other | Lines: 514 ( +22, -13 )

Created: 2008-02-22 15:12:51 -0600 (2 months 22 days ago) | Author: jimi | Changeset: 4631

More minor C++ compatibility options

4627 annotated / raw | Diffs: previous, other | Lines: 505 ( +13, -5 )

Created: 2008-02-22 10:37:10 -0600 (2 months 22 days ago) | Author: jimi | Changeset: 4627

Ensure user free pointers are called when scope stacks are popped

4625 annotated / raw | Diffs: previous, other | Lines: 497 ( +18, -2 )

Created: 2008-02-22 01:35:57 -0600 (2 months 23 days ago) | Author: jimi | Changeset: 4625

Fix up lexer shared state confusion, delegated lexers were overriding the tokensource set by the delgator and now they just leave it to the master, as you should all do too :-)

4621 annotated / raw | Diffs: previous, other | Lines: 481 ( +5, -0 )

Created: 2008-02-21 16:48:02 -0600 (2 months 23 days ago) | Author: jimi | Changeset: 4621

o Correction to make cyclicDFA just flag failure rather than raise exceptions if in backtracking mode. This should be a major performance improvement for backtracking parsers, not quite finsihed yet, moving to another system to run benchmarking and meroy leak detection sotware

4615 annotated / raw | Diffs: previous, other | Lines: 476 ( +1, -1 )

Created: 2008-02-21 13:40:39 -0600 (2 months 23 days ago) | Author: jimi | Changeset: 4615

Correct an error return type to return NULL rather than a special indicator

4612 annotated / raw | Diffs: previous, other | Lines: 476 ( +8, -8 )

Created: 2008-02-20 23:32:26 -0600 (2 months 24 days ago) | Author: jimi | Changeset: 4612

Minor corrections for typos in C target string templates

4607 annotated / raw | Diffs: previous, other | Lines: 476 ( +7, -7 )

Created: 2008-02-20 22:18:46 -0600 (2 months 24 days ago) | Author: jimi | Changeset: 4607

o Updates for tree parsinf and tree parser rewriting.
o Add errorNode method to base tree adaptor

4602 annotated / raw | Diffs: previous, other | Lines: 476 ( +3, -3 )

Created: 2008-02-20 17:18:20 -0600 (2 months 24 days ago) | Author: jimi | Changeset: 4602

Initial check in of new tree parser rewrite templates, to create a base for debugging.

4599 annotated / raw | Diffs: previous, other | Lines: 476 ( +295, -146 )

Created: 2008-02-20 10:04:19 -0600 (2 months 25 days ago) | Author: jimi | Changeset: 4599

o Update the C.stg code template in line with ANTLR 3.1, including all delgates and delegator code, new $x.int ref, new shared state schema, lexer rule ref updates and a few more comments.

4578 annotated / raw | Diffs: previous, other | Lines: 327 ( +2, -0 )

Created: 2008-02-17 20:38:41 -0600 (2 months 27 days ago) | Author: jimi | Changeset: 4578

IMplement the SKIP() macro for the lexer, so that the grammar programmar can cause tokens to be completely skipped and not take up memory when they are not needed.

4577 annotated / raw | Diffs: previous, other | Lines: 325 ( +4, -4 )

Created: 2008-02-17 19:44:35 -0600 (2 months 27 days ago) | Author: jimi | Changeset: 4577

o Ensure that ANTLR3_MALLOC and related memory function calls can be overriddren correctly
o Abstract out printf fprintf in macros ANTLR3_{F}PRINTF so that people porting to embedded systems without these calls can make them do something else, including nothing if you define them as just '//'

4575 annotated / raw | Diffs: previous, other | Lines: 325 ( +12, -14 )

Created: 2008-02-17 17:21:09 -0600 (2 months 27 days ago) | Author: jimi | Changeset: 4575

Rationalize use of 64 bit datatypes, which wre nnot properly considered until now. 64 bit data types are now only used where they offer some kind of advantage or must be used when compiling for 64 bit arachitectures. This is now only things like nextChar, which are addresses but are also used as the index/mark/rewind points. I may actually change this back to a 32 bit value in a future modification.

4562 annotated / raw | Diffs: previous, other | Lines: 327 ( +16, -11 )

Created: 2008-02-15 17:51:18 -0600 (2 months 29 days ago) | Author: jimi | Changeset: 4562

Huge documentation updates.

4544 annotated / raw | Diffs: previous, other | Lines: 322 ( +60, -62 )

Created: 2008-02-13 10:52:18 -0600 (3 months ago) | Author: jimi | Changeset: 4544

Checkpoint. Stage 1 of transition to ANTLR 3.1 API
o Added debugging interface and initialization
o Added new interface elements for base tree, common tree, node stream etc for tree rewrites
o Rebased Vectors and stack at 0, which is what they should be
o Some reformatting as I went
o Some typo correction in comments as I get more emails about that than anythign else
o Change to 4 space tabs and indents to confuse people :-(
o Change to C++ style comments to make formatting easier in preparation for improvied API doxygenm comments
o Some bug fixes
This source snapshot compiles but does not run as the template is not yet up to date for ANTLR 3.1

3956 annotated / raw | Diffs: previous, other | Lines: 324 ( +15, -11 )

Created: 2007-07-30 11:10:39 -0500 (9 months ago) | Author: jimi | Changeset: 3956

Myriad tiny fixes and codegen improvements

3925 annotated / raw | Diffs: previous, other | Lines: 320 ( +20, -7 )

Created: 2007-07-20 19:23:35 -0500 (9 months ago) | Author: jimi | Changeset: 3925

Varous bug fixes
Reinstate @init code so it is not protected by memoize
Rationalize toke settext()
Ensure push and Pop streams free their memory upon lexer close
Spelling correctsion for comments
Gradually move to 4 space tab, like I should have done in the first place, but it is a long story

3888 annotated / raw | Diffs: previous, other | Lines: 307 ( +1, -1 )

Created: 2007-07-11 18:16:22 -0500 (10 months ago) | Author: jimi | Changeset: 3888

Add the ability to add custom elements to the lexer and parser contexts. I thought I ahd already done this, but apparently not.

3882 annotated / raw | Diffs: previous, other | Lines: 307 ( +12, -10 )

Created: 2007-07-10 19:01:36 -0500 (10 months ago) | Author: jimi | Changeset: 3882

Provide case insenstive version of the 8 bit input stream. If lexer tokesn are specificed in UPPER case then if you call the input method SetUcaseLA(inut, TRUE) then the keyword mathing will be done in a case insensitive manner, while preserving the case for the actual token.

3849 annotated / raw | Diffs: previous, other | Lines: 305 ( +13, -4 )

Created: 2007-06-27 11:00:18 -0500 (10 months ago) | Author: jimi | Changeset: 3849

Fix up recovery from backtracking rule failure so we do not lose scopes on the rule stack.

3847 annotated / raw | Diffs: previous, other | Lines: 296 ( +7, -5 )

Created: 2007-06-26 19:05:55 -0500 (10 months ago) | Author: jimi | Changeset: 3847

Correctly intialize single value rule return labels.

3834 annotated / raw | Diffs: previous, other | Lines: 294 ( +36, -6 )

Created: 2007-06-19 19:48:27 -0500 (10 months ago) | Author: jimi | Changeset: 3834

Fix up stack handling so it wrks for both followsets, C parser example and the input stack handling just added to the runtime.
Implement stacked input stream functions now they are all tested.
Ensure that no warnings are issued by imaginary token rewrite rules.

3833 annotated / raw | Diffs: previous, other | Lines: 264 ( +1, -0 )

Created: 2007-06-19 16:00:06 -0500 (10 months ago) | Author: jimi | Changeset: 3833

Minor tweaks for prior bug fixing check in for C target.

3831 annotated / raw | Diffs: previous, other | Lines: 263 ( +19, -11 )

Created: 2007-06-19 15:31:18 -0500 (10 months ago) | Author: jimi | Changeset: 3831

Fix for:
o ANTLR-145 http://www.antlr.org:8888/browse/ANTLR-145
o ANTLR-144 http://www.antlr.org:8888/browse/ANTLR-144
o Incorrectly named macros
o Missing SCAN() macro supplied
o Back out of using fastcall on Windows in Release mode
o Fix rewrite of imaginary token with text
o Fix Cyclic DFA back to signed integers
o Other miscellaneous minor bugs
o Provide support for stacking input streams by default

3828 annotated / raw | Diffs: previous, other | Lines: 255 ( +1, -1 )

Created: 2007-06-17 14:19:50 -0500 (10 months ago) | Author: jimi | Changeset: 3828

Correct accidental upper casing of REWINDLAST()
Correct tree node rewrite streams by adding +1 to vector get() function so as to avoid mortally offending people who spend a whole 2 hours debugging something and wasting their time.

3705 annotated / raw | Diffs: previous, other | Lines: 255 ( +1, -1 )

Created: 2007-05-05 19:35:11 -0500 (12 months ago) | Author: jimi | Changeset: 3705

Needed slight twaeks to ensure token type is correctly set if using EMIT(); to send out a token before the lexical scan for that token has finished.

3697 annotated / raw | Diffs: previous, other | Lines: 255 ( +1, -3 )

Created: 2007-05-05 12:14:30 -0500 (12 months ago) | Author: jimi | Changeset: 3697

More fixes for warnings in AST codegen

3690 annotated / raw | Diffs: previous, other | Lines: 257 ( +2, -1 )

Created: 2007-05-04 20:27:05 -0500 (12 months ago) | Author: jimi | Changeset: 3690

CAtch up C template to changelist #3682

3687 annotated / raw | Diffs: previous, other | Lines: 256 ( +79, -72 )

Created: 2007-05-04 20:19:45 -0500 (12 months ago) | Author: jimi | Changeset: 3687

Bug fixes for tree to string, new AST rewrite streams, template catch ups.

3678 annotated / raw | Diffs: previous, other | Lines: 249 ( +2, -0 )

Created: 2007-05-03 14:41:55 -0500 (12 months ago) | Author: jimi | Changeset: 3678

Reimplement tree rewriting in C target language as per new Java version based on rewrite streams. This is stage one which is just to get het new runtime compiling and the templates semmingly up to date. Next is to test this out and debug.

3663 annotated / raw | Diffs: previous, other | Lines: 247 ( +10, -2 )

Created: 2007-04-30 18:06:30 -0500 (12 months ago) | Author: jimi | Changeset: 3663

Catch C.stg up to Java template changelist 3615

3662 annotated / raw | Diffs: previous, other | Lines: 239 ( +43, -5 )

Created: 2007-04-30 18:01:14 -0500 (12 months ago) | Author: jimi | Changeset: 3662

Catch up to JAva based changelist 3613, lexer rule references (untested yet, just catching up the template changes)

3661 annotated / raw | Diffs: previous, other | Lines: 201 ( +30, -17 )

Created: 2007-04-30 17:44:45 -0500 (12 months ago) | Author: jimi | Changeset: 3661

Catch up Java.stg to AST rewirite level as of changelist 3609

3660 annotated / raw | Diffs: previous, other | Lines: 188 ( +3, -1 )

Created: 2007-04-30 16:33:26 -0500 (12 months ago) | Author: jimi | Changeset: 3660

Catch up with Java lang output fix for ANTLR-94, though I do not think it affected the C target.

3659 annotated / raw | Diffs: previous, other | Lines: 186 ( +1, -1 )

Created: 2007-04-30 16:23:48 -0500 (12 months ago) | Author: jimi | Changeset: 3659

Catch up to java template changelist # 3517

3658 annotated / raw | Diffs: previous, other | Lines: 186 ( +4, -4 )

Created: 2007-04-30 16:21:36 -0500 (12 months ago) | Author: jimi | Changeset: 3658

Catch up the C target to Java releated change list 3509, lexer code gen bug fix

3654 annotated / raw | Diffs: previous, other | Lines: 186 ( +21, -38 )

Created: 2007-04-29 19:33:54 -0500 (12 months ago) | Author: jimi | Changeset: 3654

o Implement lexer rule change as per changelist 3508
o Remove spurious warnings from inline input code
o Ensure bitsets are always 64 bit even in 32 bit mode

3650 annotated / raw | Diffs: previous, other | Lines: 203 ( +2, -2 )

Created: 2007-04-29 15:11:04 -0500 (12 months ago) | Author: jimi | Changeset: 3650

Duplicate AST ordering stuff from Java as per Changelist 3532

3642 annotated / raw | Diffs: previous, other | Lines: 203 ( +3, -3 )

Created: 2007-04-27 01:08:52 -0500 (12 months ago) | Author: jimi | Changeset: 3642

Implement Elastic Bucket Patrica Trie for genreal programmer use but more importantly to use for memoize() and potentially other elements of the runtime. C runtime with memoize is now approx 2X the java runtime, and getting better, though I am impressed with how well java is running (apart from startup load times)

3634 annotated / raw | Diffs: previous, other | Lines: 203 ( +3, -3 )

Created: 2007-04-25 10:54:55 -0500 (12 months ago) | Author: jimi | Changeset: 3634

Use Vectors and custom tracker for memoization (this needs debugging, wait for a fix after this changelist)

3632 annotated / raw | Diffs: previous, other | Lines: 203 ( +3, -3 )

Created: 2007-04-24 22:49:23 -0500 (12 months ago) | Author: jimi | Changeset: 3632

Ensure that function pointers that may hold C runtime functions such as free() are always declared as _cdecl on Windows. The optimzed library uses _fastcall

3630 annotated / raw | Diffs: previous, other | Lines: 203 ( +54, -8 )

Created: 2007-04-24 21:19:54 -0500 (12 months ago) | Author: jimi | Changeset: 3630

Allow inline data pointer access for LA(n) and CONSUME() in standard ANTLR3 INTSTREAMS, leaving indirect method calls for default and user supplied templates.

3629 annotated / raw | Diffs: previous, other | Lines: 157 ( +2, -2 )

Created: 2007-04-24 15:41:21 -0500 (12 months ago) | Author: jimi | Changeset: 3629

Improvements for followstack performance and change ANTLR3_STACK to use vector rather than list.

3624 annotated / raw | Diffs: previous, other | Lines: 157 ( +11, -10 )

Created: 2007-04-23 14:37:42 -0500 (12 months ago) | Author: jimi | Changeset: 3624

Change to use integer keys for lists, rather then hashing a string.

3621 annotated / raw | Diffs: previous, other | Lines: 156 ( +1, -1 )

Created: 2007-04-23 11:35:33 -0500 (12 months ago) | Author: jimi | Changeset: 3621

The hashtable for memoization in C language target was being created too small. Created as a huge size now, whlie I work out what I want to do about that. Maybe a new table type. HOwever, it is time to stop using sprintf and strcmp for keys now anway. :-)

3620 annotated / raw | Diffs: previous, other | Lines: 156 ( +10, -10 )

Created: 2007-04-23 00:58:57 -0500 (12 months ago) | Author: jimi | Changeset: 3620

Increase cyclic DFA elements to INT32 while I work on reducing most of them to UINT16 rather than INT16

3605 annotated / raw | Diffs: previous, other | Lines: 156 ( +3, -3 )

Created: 2007-04-20 13:25:22 -0500 (12 months ago) | Author: jimi | Changeset: 3605

Ensure MATCHT macro does not try to take the address of NULL

3597 annotated / raw | Diffs: previous, other | Lines: 156 ( +15, -47 )

Created: 2007-04-19 14:25:09 -0500 (12 months ago) | Author: jimi | Changeset: 3597

C target - Updates to improve managing island grammars from C and make error recovery bitsets static so there is no need to allocate them at runtime.

3583 annotated / raw | Diffs: previous, other | Lines: 188 ( +15, -3 )

Created: 2007-04-18 19:34:06 -0500 (12 months ago) | Author: jimi | Changeset: 3583

Tiny fixes to implement memoization

3580 annotated / raw | Diffs: previous, other | Lines: 176 ( +344, -324 )

Created: 2007-04-18 18:24:18 -0500 (12 months ago) | Author: jimi | Changeset: 3580

o Many updates to support filtering lexers
o Changed all the macros to upper case, time to stop trying to look like Java and look like C!! The java style macro names for use by grammar programmers were confusing to C programmers, hence instead of getText, you now have GETTEXT() and it is obvious that it is a macro doing something cool and froody.

3578 annotated / raw | Diffs: previous, other | Lines: 156 ( +11, -4 )

Created: 2007-04-18 02:36:20 -0500 (12 months ago) | Author: jimi | Changeset: 3578

Fix toString calls for non TreeParsers. NB: While the mehtod call is fixed, it seesm that the token indexes are all 0, hence the string is incorrectly identified, and the toStringSS method seesm to try to get tokens anyway, ratherhtan use theindexs given to it!

3573 annotated / raw | Diffs: previous, other | Lines: 149 ( +1, -1 )

Created: 2007-04-18 00:51:43 -0500 (12 months ago) | Author: jimi | Changeset: 3573

Ensure that the dynamic scope top is tracked on pop for rule scopes as well as global dynamic scopes.

3571 annotated / raw | Diffs: previous, other | Lines: 149 ( +10, -7 )

Created: 2007-04-17 23:19:28 -0500 (12 months ago) | Author: jimi | Changeset: 3571

o Ensure that global dynamic scopes work correctly and provide some neat macros to refernce them in action code.
o Go back to popping followsets for now, oherwise while we don't have memoize working yet, we create a billion (literally) followsets
   on the error recovery stack. Still using a bit to omuch memory for this, but most meory is used for tokens, which perhaps I can reduce.

3568 annotated / raw | Diffs: previous, other | Lines: 146 ( +1, -1 )

Created: 2007-04-17 16:13:43 -0500 (12 months ago) | Author: jimi | Changeset: 3568

Fix initialization os use/global scopes in C target. There is no it.name in a UseScope, only it

3507 annotated / raw | Diffs: previous, other | Lines: 146 ( +3, -1 )

Created: 2007-03-22 17:52:11 -0500 (13 months ago) | Author: jimi | Changeset: 3507

Create a new @declarations action for

3485 annotated / raw | Diffs: previous, other | Lines: 144 ( +1, -8 )

Created: 2007-03-14 19:30:47 -0500 (14 months ago) | Author: jimi | Changeset: 3485

Fix ANTLR-91

3484 annotated / raw | Diffs: previous, other | Lines: 151 ( +25, -8 )

Created: 2007-03-14 18:36:58 -0500 (14 months ago) | Author: jimi | Changeset: 3484

Fix up codegen template for label refs in AST, add missing template to name a header file (how did it work without this?????)

3450 annotated / raw | Diffs: previous, other | Lines: 134 ( +48, -33 )

Created: 2007-03-10 22:11:13 -0600 (14 months ago) | Author: jimi | Changeset: 3450

Updates to AST and to interfaces accidentally left checked out at my old job!

3387 annotated / raw | Diffs: previous, other | Lines: 119 ( +6, -3 )

Created: 2007-01-11 19:08:10 -0600 (16 months ago) | Author: jimi | Changeset: 3387

o Fix for declaring lexer internal variables after intialisation for non-naked blocks.
o Fix for matchAny calling the recognizer default implementation insted of the lexer
   implementation when . used in a lexer rule!

3326 annotated / raw | Diffs: previous, other | Lines: 116 ( +297, -370 )

Created: 2006-12-13 16:36:01 -0600 (17 months ago) | Author: jimi | Changeset: 3326

Move generated macrso into C source as they are only used locally
Remove redundant commetns from codegen
Implement filtering nexttoken (untested as yet)

3314 annotated / raw | Diffs: previous, other | Lines: 189 ( +20, -23 )

Created: 2006-12-08 18:25:44 -0600 (17 months ago) | Author: jimi | Changeset: 3314

Update for $lexer references

3312 annotated / raw | Diffs: previous, other | Lines: 192 ( +7, -7 )

Created: 2006-12-08 15:18:48 -0600 (17 months ago) | Author: jimi | Changeset: 3312

Small correction to AST rewrite rule, move root_n AFTER it is created not before.

3199 annotated / raw | Diffs: previous, other | Lines: 192 ( +1, -0 )

Created: 2006-11-05 19:58:49 -0600 (18 months ago) | Author: jimi | Changeset: 3199

Implement easier way to access pre-defined EOF_TOKEN from lexers, specifically in this case an island grammar

3198 annotated / raw | Diffs: previous, other | Lines: 191 ( +54, -22 )

Created: 2006-11-05 17:01:44 -0600 (18 months ago) | Author: jimi | Changeset: 3198

Catch up with JAva.stg in C.stg, bug fixes for cyclic DFA's thqat require special transition state functions. Ensure backtracking works for lexers.

3183 annotated / raw | Diffs: previous, other | Lines: 159 ( +3, -0 )

Created: 2006-11-01 11:14:44 -0600 (18 months ago) | Author: jimi | Changeset: 3183

Ensure extra linefeed at the end of the generated header file so that UNIX is happy.

3121 annotated / raw | Diffs: previous, other | Lines: 156 ( +2, -0 )

Created: 2006-10-18 14:50:48 -0500 (18 months ago) | Author: jimi | Changeset: 3121

Ensure that the string insertion functions properly copy the terminating '\0'

3082 annotated / raw | Diffs: previous, other | Lines: 154 ( +1, -1 )

Created: 2006-10-05 16:44:41 -0500 (19 months ago) | Author: jimi | Changeset: 3082

Remove harmless warning with a type cast.

3042 annotated / raw | Diffs: previous, other | Lines: 154 ( +13, -6 )

Created: 2006-09-29 18:44:10 -0500 (19 months ago) | Author: jimi | Changeset: 3042

Hyperactive memory leak analysis day. Bought devpartner studio and tracked down every single memory leak I could find. :-) May be more as I have not use the coverage tool to explore every nook and cranny, but it shodl be pretty safe after this check in!

2973 annotated / raw | Diffs: previous, other | Lines: 147 ( +3, -2 )

Created: 2006-09-12 14:08:50 -0500 (20 months ago) | Author: jimi | Changeset: 2973

o Update Visual Studio rules files in light of options added to ANTLR by Ter.
o Update C codegen template to conform to latest .sti spec

2969 annotated / raw | Diffs: previous, other | Lines: 146 ( +1, -1 )

Created: 2006-09-12 12:20:39 -0500 (20 months ago) | Author: jimi | Changeset: 2969

Update error message display a little, ensure UNIT64 macro is used to declare bitsets etc

2959 annotated / raw | Diffs: previous, other | Lines: 146 ( +4, -0 )

Created: 2006-09-06 17:53:14 -0500 (20 months ago) | Author: jimi | Changeset: 2959

Changes for better error handling.

2949 annotated / raw | Diffs: previous, other | Lines: 142 ( +6, -3 )

Created: 2006-09-06 11:03:19 -0500 (20 months ago) | Author: jimi | Changeset: 2949

lATESRT BUGFIXES AND ENEHCANCEMENTS. bETTER ERROR AND ECEPTION HANDLING, allows user poitners and overrides for display errors etc.

2947 annotated / raw | Diffs: previous, other | Lines: 139 ( +30, -21 )

Created: 2006-09-05 11:01:26 -0500 (20 months ago) | Author: jimi | Changeset: 2947

Minor tweaks for LEXER rule codegen

2942 annotated / raw | Diffs: previous, other | Lines: 130 ( +8, -8 )

Created: 2006-09-03 21:24:22 -0500 (20 months ago) | Author: jimi | Changeset: 2942

Sublte fixes for mark/seek in the light of new CyclicDFA code, which also required a small fix not to use 0 as a default and to ensure -1 was OK in min/max tables. Cyclic DFA is all debiugged and seems to be hunky dory now!

2938 annotated / raw | Diffs: previous, other | Lines: 130 ( +16, -4 )

Created: 2006-09-01 19:42:46 -0500 (20 months ago) | Author: jimi | Changeset: 2938

Minor tweaks to remove more warnings

2934 annotated / raw | Diffs: previous, other | Lines: 118 ( +8, -19 )

Created: 2006-09-01 11:52:00 -0500 (20 months ago) | Author: jimi | Changeset: 2934

Code gen tweaks to remove warnings in /W4 mode of VS 2005 C compiler

2932 annotated / raw | Diffs: previous, other | Lines: 129 ( +20, -14 )

Created: 2006-08-31 10:23:34 -0500 (20 months ago) | Author: jimi | Changeset: 2932

luv

2929 annotated / raw | Diffs: previous, other | Lines: 123 ( +28, -25 )

Created: 2006-08-30 15:16:17 -0500 (20 months ago) | Author: jimi | Changeset: 2929

Tweaks for interfaces after use in anger on a huge C lexer/parser/tree parser project.

2916 annotated / raw | Diffs: previous, other | Lines: 120 ( +255, -166 )

Created: 2006-08-25 16:44:27 -0500 (20 months ago) | Author: jimi | Changeset: 2916

Check in of Cyclic DFA rewrite (all static :-) and tree parsing codegen all correct. Debugging next.

2914 annotated / raw | Diffs: previous, other | Lines: 31 ( +136, -105 )

Created: 2006-08-25 00:06:20 -0500 (20 months ago) | Author: jimi | Changeset: 2914

All code gen re-jigged and working -tree parsing working - cyclic DFA re-jigged (code gen to fix up tomorrow, too tired now but it will only be 10 minutes). Shold be finished tomorrow!!!

2910 annotated / raw | Diffs: previous, other | Lines: 911 ( +0, -0 )

Created: 2006-08-23 18:59:11 -0500 (20 months ago) | Author: jimi | Changeset: 2910

Rejig interface defintions to stop messing with me pointer and change to a super potiner instead. A super potiner in an interface points to the enclosing super structure. So for instance a super pointer in an INT stream can point to a TOKEN stream or a TREENODE stream. A super pointer in TREE stream points to a COMMON_TREE stream and so on. THis is mcuh neater and more intuitive than the previous system which was selfishly based around me me me.

2908 raw

Created: 2006-08-22 23:07:03 -0500 (20 months ago) | Author: jimi | Changeset: 2908

Too tierd - pity as almost there.

2907 annotated / raw | Diffs: previous, other | Lines: 911 ( +1, -1 )

Created: 2006-08-22 19:01:34 -0500 (20 months ago) | Author: jimi | Changeset: 2907

Tree parser framework

2905 annotated / raw | Diffs: previous, other | Lines: 911 ( +11, -2 )

Created: 2006-08-22 17:37:38 -0500 (20 months ago) | Author: jimi | Changeset: 2905

Tree rewrites rules and template complete.

2904 annotated / raw | Diffs: previous, other | Lines: 902 ( +5, -3 )

Created: 2006-08-22 00:57:01 -0500 (20 months ago) | Author: jimi | Changeset: 2904

Just about done...

2903 annotated / raw | Diffs: previous, other | Lines: 900 ( +3, -3 )

Created: 2006-08-21 18:49:49 -0500 (20 months ago) | Author: jimi | Changeset: 2903

Transfer to home for for late night head banging

2891 annotated / raw | Diffs: previous, other | Lines: 900 ( +13, -7 )

Created: 2006-08-18 19:40:00 -0500 (20 months ago) | Author: jimi | Changeset: 2891

Transfer home with working parser

2875 annotated / raw | Diffs: previous, other | Lines: 894 ( +435, -294 )

Created: 2006-08-14 04:58:58 -0500 (21 months ago) | Author: jimi | Changeset: 2875

Transfer latest work to server to ensre ti is not lost:
o Lexer working other than fliter mode;
o Non tree related parsing back up to date template wise with java - runtime patches to follow;
o base tree and common tree up to date with java;
o Start of tree adaptor runtime;
o Memory corruption in parsers found and fixed;
o Memory leaks in parser (when parser is sucessful) found and fixed - failed parse to be cleaned up;
o Start of conversion of AST template into C output - now pending defintion of some of the runtime structures;
Warning  - parts of this update were completed on vairous beaches, inclduing but not limited to, St.Tropez, St. Jean Cap Ferat, Nice, Cap  d'Antibbes. As such, serious relaxing may be required to enjoy this software correctly.

2715 annotated / raw | Diffs: previous, other | Lines: 753 ( +1, -1 )

Created: 2006-06-14 17:29:38 -0500 (23 months ago) | Author: parrt | Changeset: 2715

set copyright date to 2005-2006

2453 annotated / raw | Diffs: previous, other | Lines: 753 ( +5, -0 )

Created: 2006-03-13 22:33:08 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2453

Merge latest Java string template changes in to C template

2412 annotated / raw | Diffs: previous, other | Lines: 748 ( +5, -5 )

Created: 2006-03-04 11:14:58 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2412

Updates for common tree parsing

2402 annotated / raw | Diffs: previous, other | Lines: 748 ( +70, -45 )

Created: 2006-03-01 23:38:45 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2402

First working version of stream->lexer->tokenstream->parser.
Includes:
o Scopes
o Rule scopes, pushing and popping (optimized)
o Actions
o Token references
o Token attribute references
o DFA and DFA state
o Error recovery for parser using bitsets (not sure about the - numbers generated by ANTLR
o Character code interception (Antlr supplied \u0000 -> 0x0000 - needs JRE 1.5
  to support CodePointAt()
o Crummy first pass at an error reporter, needs a bit of work, but who copmmiles things with errors eh?
o Generates 64 bit copmatible code (needs a bit of testing though for compiler defs)
o Windows only with VC 7.1 - rest in a few hours time.
o Tested against pretty complicated grammar - needs someone to be co-opted to write unit tests.
o Errr.. that about wraps up the parser, now for trees.

2401 annotated / raw | Diffs: previous, other | Lines: 723 ( +193, -111 )

Created: 2006-03-01 19:19:26 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2401

DFA and Cyclic DFAs all done and dusted, and I did not even need to add tehm to the header file :-)

2399 annotated / raw | Diffs: previous, other | Lines: 641 ( +216, -130 )

Created: 2006-03-01 11:21:26 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2399

Scopes online

2397 annotated / raw | Diffs: previous, other | Lines: 555 ( +217, -47 )

Created: 2006-02-28 20:18:40 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2397

Working parser!!!

2396 annotated / raw | Diffs: previous, other | Lines: 385 ( +389, -137 )

Created: 2006-02-28 07:08:00 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2396

Sleep time

2395 annotated / raw | Diffs: previous, other | Lines: 133 ( +38, -17 )

Created: 2006-02-27 19:46:28 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2395

Take home the code - internet connection issues here at work.

2391 annotated / raw | Diffs: previous, other | Lines: 112 ( +230, -118 )

Created: 2006-02-27 12:12:08 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2391

Come home -> check in the changes the VC7 thought were not changed because netneans did it, get back on bike and go back to work.

2366 annotated / raw | Diffs: previous, other | Lines: 0 ( +1, -1 )

Created: 2006-02-19 20:04:04 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2366

Latest updates for ANTLR3 C runtime.

2365 annotated / raw | Diffs: previous, other | Lines: 1547 ( +0, -0 )

Created: 2006-02-18 23:16:09 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2365

Changes that VS missed for some reason

2364 raw

Created: 2006-02-18 23:15:04 -0600 (2 years 2 months ago) | Author: jimi | Changeset: 2364

Submit for the night (probably) - determined to get this done by Monday morning.

2354 annotated / raw | Diffs: previous, other | Lines: 1547 ( +99, -42 )

Created: 2006-02-09 09:16:14 -0600 (2 years 3 months ago) | Author: jimi | Changeset: 2354

Integrate latest java .stg templates into the C templates.

2353 annotated / raw | Diffs: previous, other | Lines: 1490 ( +354, -133 )

Created: 2006-02-09 09:06:54 -0600 (2 years 3 months ago) | Author: jimi | Changeset: 2353

CHeck in some interim changes to take to work and start in earnest on this

2170 annotated / raw | Diffs: previous, other | Lines: 1269 ( +97, -22 )

Created: 2005-12-20 20:13:02 -0600 (2 years 4 months ago) | Author: jimi | Changeset: 2170

Merge Ter's latest mad slashing of the Java codegen templates for backtracking code into the C codegen templates. Did I ever say how gald i am that I decided to do the C tempaltes via integration and change of the java ones?

2095 annotated / raw | Diffs: previous, other | Lines: 1194 ( +4, -4 )

Created: 2005-12-01 18:56:48 -0600 (2 years 5 months ago) | Author: jimi | Changeset: 2095

Merge in Ter's Java template updates so I can keep track of template paramter changes and new templates etc.

2093 annotated / raw | Diffs: previous, other | Lines: 1194 ( +338, -35 )

Created: 2005-12-01 01:13:05 -0600 (2 years 5 months ago) | Author: jimi | Changeset: 2093

Much better start on the C output!

2092 new/copied annotated / raw | Diffs: previous, other | Lines: 891 ( +891, -0 )

Created: 2005-11-30 20:36:50 -0600 (2 years 5 months ago) | Author: jimi | Changeset: 2092

Made a branch of the ANTLR3 Java code generation templates for restarting code generation for the C target.

2091 deleted | Diffs: previous, other | Lines: 0 ( +0, -1358 )

Created: 2005-11-30 20:25:33 -0600 (2 years 5 months ago) | Author: jimi | Changeset: 2091

Delete old templates (scratch code if you like, and ready for integartion of exsting Java ones as base point.

2090