ohcount
16 years agoRemoved line counter callbacks for comments and strings; they waste parser time.
mitchell [Thu, 22 May 2008 21:38:00 +0000 (17:38 -0400)] 
Removed line counter callbacks for comments and strings; they waste parser time.

16 years agoDefine NEWLINE like INTERNAL_NL so parsers don't have to define their own.
mitchell [Thu, 22 May 2008 21:23:56 +0000 (17:23 -0400)] 
Define NEWLINE like INTERNAL_NL so parsers don't have to define their own.

16 years agoWrapped lua.rl's process_last_line call in conditional.
mitchell [Thu, 22 May 2008 21:08:37 +0000 (17:08 -0400)] 
Wrapped lua.rl's process_last_line call in conditional.

16 years agoPrettied up c.rl and lua.rl parsers.
mitchell [Thu, 22 May 2008 21:07:25 +0000 (17:07 -0400)] 
Prettied up c.rl and lua.rl parsers.

16 years agoUpdated lua.rl parser to split line counting and entity machines.
mitchell [Thu, 22 May 2008 21:04:30 +0000 (17:04 -0400)] 
Updated lua.rl parser to split line counting and entity machines.

16 years agoAdded ls action to common.rl for consistency.
mitchell [Thu, 22 May 2008 21:03:27 +0000 (17:03 -0400)] 
Added ls action to common.rl for consistency.

16 years agoUpdated PARSER_DOC to fix typo.
mitchell [Thu, 22 May 2008 21:02:48 +0000 (17:02 -0400)] 
Updated PARSER_DOC to fix typo.

16 years agoUpdated PARSER_DOC to include entity machines.
mitchell [Thu, 22 May 2008 20:56:26 +0000 (16:56 -0400)] 
Updated PARSER_DOC to include entity machines.

16 years agoAdded the c.rl entity machine; separated from line counting machine.
mitchell [Thu, 22 May 2008 20:33:43 +0000 (16:33 -0400)] 
Added the c.rl entity machine; separated from line counting machine.

16 years agoAdded my details to the top of the parsers.
mitchell [Thu, 22 May 2008 02:29:26 +0000 (22:29 -0400)] 
Added my details to the top of the parsers.

16 years agoUpdated comment in lua.rl.
mitchell [Wed, 21 May 2008 18:04:10 +0000 (14:04 -0400)] 
Updated comment in lua.rl.

16 years agoRemoved ragel_parser_defines.h in favor of ragel_parser_macros.h
mitchell [Wed, 21 May 2008 17:56:36 +0000 (13:56 -0400)] 
Removed ragel_parser_defines.h in favor of ragel_parser_macros.h

16 years agoUpdated PARSER_DOC to include documentation on macros.
mitchell [Wed, 21 May 2008 17:54:31 +0000 (13:54 -0400)] 
Updated PARSER_DOC to include documentation on macros.

16 years agoRenamed ragel_parser_defines.h to ragel_parser_macros.h; updated parsers.
mitchell [Wed, 21 May 2008 17:52:52 +0000 (13:52 -0400)] 
Renamed ragel_parser_defines.h to ragel_parser_macros.h; updated parsers.

16 years agoAdded last line processor to ragel_parser_defines.h for files with no \n at EOF.
mitchell [Wed, 21 May 2008 17:25:57 +0000 (13:25 -0400)] 
Added last line processor to ragel_parser_defines.h for files with no \n at EOF.

16 years agoAdded comment define to ragel_parser_defines.h for consistency.
mitchell [Wed, 21 May 2008 16:48:42 +0000 (12:48 -0400)] 
Added comment define to ragel_parser_defines.h for consistency.

16 years agoAdded ragel_parser_defines.h with common defines for parsers.
mitchell [Wed, 21 May 2008 16:46:08 +0000 (12:46 -0400)] 
Added ragel_parser_defines.h with common defines for parsers.

16 years agoUpdated formatting of PARSER_DOC.
mitchell [Wed, 21 May 2008 15:53:29 +0000 (11:53 -0400)] 
Updated formatting of PARSER_DOC.

16 years agoUpdated PARSER_DOC to include information on the different Ragel machines.
mitchell [Wed, 21 May 2008 15:45:10 +0000 (11:45 -0400)] 
Updated PARSER_DOC to include information on the different Ragel machines.

16 years agoLeft off some documentation for parse_lua in lua.rl.
mitchell [Wed, 21 May 2008 15:15:37 +0000 (11:15 -0400)] 
Left off some documentation for parse_lua in lua.rl.

16 years agoRemoved [lang]_callback C function name requirement; can just be callback.
mitchell [Wed, 21 May 2008 15:14:37 +0000 (11:14 -0400)] 
Removed [lang]_callback C function name requirement; can just be callback.

16 years agoRagel parsers will use 2 machines: one optimized for counting, one for entities.
mitchell [Wed, 21 May 2008 15:07:19 +0000 (11:07 -0400)] 
Ragel parsers will use 2 machines: one optimized for counting, one for entities.
Making one machine that will do both will be inefficient and time-consuming for
parser writers. Speed improvements and accuracy are also much higher for
separate machines.

16 years agoUpdated PARSER_DOC to recommend prefixing definitions to avoid conflics.
mitchell [Wed, 21 May 2008 15:04:26 +0000 (11:04 -0400)] 
Updated PARSER_DOC to recommend prefixing definitions to avoid conflics.

16 years agoAdded Lua Ragel parser.
mitchell [Tue, 20 May 2008 22:10:00 +0000 (18:10 -0400)] 
Added Lua Ragel parser.

16 years agoUpdated PARSER_DOC to include non-conflicting constant names.
mitchell [Tue, 20 May 2008 22:08:17 +0000 (18:08 -0400)] 
Updated PARSER_DOC to include non-conflicting constant names.

16 years agoRemoved C_ANY and company from c.rl; not valid C.
mitchell [Tue, 20 May 2008 22:03:07 +0000 (18:03 -0400)] 
Removed C_ANY and company from c.rl; not valid C.

16 years agoConstants are now prefixed in c.rl to prevent conflict with other parsers.
mitchell [Tue, 20 May 2008 20:42:19 +0000 (16:42 -0400)] 
Constants are now prefixed in c.rl to prevent conflict with other parsers.

16 years agoUpdated PARSER_DOC to discuss why variable/function renaming is necessary.
mitchell [Tue, 20 May 2008 20:28:07 +0000 (16:28 -0400)] 
Updated PARSER_DOC to discuss why variable/function renaming is necessary.

16 years agoAdded 'warning' preprocessor keyword to c.rl.
mitchell [Tue, 20 May 2008 17:35:38 +0000 (13:35 -0400)] 
Added 'warning' preprocessor keyword to c.rl.

16 years agoc.rl's strings contain escaped newlines, not newlines.
mitchell [Tue, 20 May 2008 17:15:43 +0000 (13:15 -0400)] 
c.rl's strings contain escaped newlines, not newlines.

16 years agoc.rl's preprocessor statements can contain block comments.
mitchell [Tue, 20 May 2008 16:33:37 +0000 (12:33 -0400)] 
c.rl's preprocessor statements can contain block comments.

16 years agoFor now put non-ws matching patterns in c.rl's multiline-patterns.
mitchell [Tue, 20 May 2008 16:33:00 +0000 (12:33 -0400)] 
For now put non-ws matching patterns in c.rl's multiline-patterns.
I'm not sure why nonnewline for example is being matched along with ws when both
are in an 'or' statement. I've asked #ragel but have gotten no response. For now
this solution works.

16 years agoc.rl assumes syntactically correct C now.
mitchell [Tue, 20 May 2008 16:28:41 +0000 (12:28 -0400)] 
c.rl assumes syntactically correct C now.

16 years agoComments in preprocessor statments aren't working in c.rl; removed.
mitchell [Tue, 20 May 2008 03:42:30 +0000 (23:42 -0400)] 
Comments in preprocessor statments aren't working in c.rl; removed.

16 years agoIt appears C's preprocessor statments don't have to be at line start.
mitchell [Tue, 20 May 2008 03:24:57 +0000 (23:24 -0400)] 
It appears C's preprocessor statments don't have to be at line start.

16 years agoAdded 3 more conditionals to common.rl.
mitchell [Tue, 20 May 2008 03:23:42 +0000 (23:23 -0400)] 
Added 3 more conditionals to common.rl.

16 years agoApparently '@' is allowed in .c.in files; added to operators in c.rl.
mitchell [Tue, 20 May 2008 02:55:44 +0000 (22:55 -0400)] 
Apparently '@' is allowed in .c.in files; added to operators in c.rl.

16 years agoUpdated PARSER_DOC to reflect counting blanks inside multi-line patterns.
mitchell [Tue, 20 May 2008 02:54:23 +0000 (22:54 -0400)] 
Updated PARSER_DOC to reflect counting blanks inside multi-line patterns.

16 years agoAdded ws definition for [\t ].
mitchell [Tue, 20 May 2008 02:52:37 +0000 (22:52 -0400)] 
Added ws definition for [\t ].

16 years agoCount empty lines inside c.rl's comments and code as blank lines.
mitchell [Tue, 20 May 2008 02:52:15 +0000 (22:52 -0400)] 
Count empty lines inside c.rl's comments and code as blank lines.

16 years agoAdded initial documentation for writing parsers.
mitchell [Tue, 20 May 2008 00:30:00 +0000 (20:30 -0400)] 
Added initial documentation for writing parsers.

16 years agoBad if statement for blank line in c.rl; should be simply else.
mitchell [Mon, 19 May 2008 22:05:52 +0000 (18:05 -0400)] 
Bad if statement for blank line in c.rl; should be simply else.

16 years agoAdded tilde (~) operator to c.rl.
mitchell [Mon, 19 May 2008 21:16:51 +0000 (17:16 -0400)] 
Added tilde (~) operator to c.rl.

16 years agoFixed bug with escape sequences in c.rl's strings.
mitchell [Mon, 19 May 2008 20:35:56 +0000 (16:35 -0400)] 
Fixed bug with escape sequences in c.rl's strings.

16 years agoForgot XOR (^) operator in c.rl.
mitchell [Mon, 19 May 2008 19:52:29 +0000 (15:52 -0400)] 
Forgot XOR (^) operator in c.rl.

16 years agoForgot to change to ragel_parse_yield_line in ragel_parser.c.
mitchell [Sat, 17 May 2008 02:21:04 +0000 (22:21 -0400)] 
Forgot to change to ragel_parse_yield_line in ragel_parser.c.

16 years agoMoved Ragel parser into its own files, separate from old parser.
mitchell [Sat, 17 May 2008 01:56:08 +0000 (21:56 -0400)] 
Moved Ragel parser into its own files, separate from old parser.
Old parser still tries to parse using Ragel, but falls back if no Ragel parser
is available.

16 years agoSwitched order of c.rl's machine definitions as in the scanner.
mitchell [Sat, 17 May 2008 00:41:03 +0000 (20:41 -0400)] 
Switched order of c.rl's machine definitions as in the scanner.

16 years agoSpoke too soon; placed keywords after identifiers in c.rl; now keywords match.
mitchell [Sat, 17 May 2008 00:33:01 +0000 (20:33 -0400)] 
Spoke too soon; placed keywords after identifiers in c.rl; now keywords match.

16 years agoEliminated keywords from c.rl; identifiers over-match them.
mitchell [Sat, 17 May 2008 00:31:38 +0000 (20:31 -0400)] 
Eliminated keywords from c.rl; identifiers over-match them.
Scanners match the longest string, and for some reason identifiers always
over-match keywords.

16 years agoUpdated c.rl and common.rl to count internal newlines.
mitchell [Fri, 16 May 2008 23:36:15 +0000 (19:36 -0400)] 
Updated c.rl and common.rl to count internal newlines.
As a result, the complexity ballooned quite a bit.
Also restructured c.rl to be more user-friendly for people that want to write
new parsers.

16 years agoescaped_newline should be before nonnewline in common.rl's line comments.
mitchell [Fri, 16 May 2008 18:42:03 +0000 (14:42 -0400)] 
escaped_newline should be before nonnewline in common.rl's line comments.

16 years agoc.rl's preprocessors won't eat newlines, which ignore newline callbacks.
mitchell [Fri, 16 May 2008 18:40:18 +0000 (14:40 -0400)] 
c.rl's preprocessors won't eat newlines, which ignore newline callbacks.

16 years agoMoved *pr from parser.h to parser.c because having it in header is unnecessary.
mitchell [Fri, 16 May 2008 17:35:41 +0000 (13:35 -0400)] 
Moved *pr from parser.h to parser.c because having it in header is unnecessary.

16 years agoEliminated potential for double inclusion of parser.h.
mitchell [Fri, 16 May 2008 17:22:11 +0000 (13:22 -0400)] 
Eliminated potential for double inclusion of parser.h.

16 years agoUpdated Rakefile to compile Ragel parsers automatically.
mitchell [Fri, 16 May 2008 01:05:25 +0000 (21:05 -0400)] 
Updated Rakefile to compile Ragel parsers automatically.

16 years agoUpdated parser.c and parser.h to use Ragel parsers if they're available.
mitchell [Fri, 16 May 2008 00:00:11 +0000 (20:00 -0400)] 
Updated parser.c and parser.h to use Ragel parsers if they're available.

16 years agoAdded C Ragel parser.
mitchell [Thu, 15 May 2008 23:59:17 +0000 (19:59 -0400)] 
Added C Ragel parser.

16 years agoAdded common.rl, common Ragel definitions, actions, etc.
mitchell [Thu, 15 May 2008 23:58:59 +0000 (19:58 -0400)] 
Added common.rl, common Ragel definitions, actions, etc.

16 years ago[FIX] Whitespace cleanups
Robin Luckey [Tue, 29 Apr 2008 23:52:21 +0000 (16:52 -0700)] 
[FIX] Whitespace cleanups

16 years agoMerge branch 'php'
Robin Luckey [Tue, 29 Apr 2008 23:49:00 +0000 (16:49 -0700)] 
Merge branch 'php'

16 years agoAdding support for Scala (http://www.scala-lang.org)
Gert Vanthienen [Tue, 29 Apr 2008 11:35:21 +0000 (13:35 +0200)] 
Adding support for Scala (www.scala-lang.org)

16 years agofixes #247, php #-comments. Also added #-comments to sql
Gwoo [Tue, 29 Apr 2008 23:35:27 +0000 (16:35 -0700)] 
fixes #247, php #-comments. Also added #-comments to sql

16 years ago[FIX] Typo in actionscript sloc_info
Robin Luckey [Mon, 28 Apr 2008 22:32:44 +0000 (15:32 -0700)] 
[FIX] Typo in actionscript sloc_info

16 years agoAdding Actionscript and Mxml support
Gwoo [Sat, 26 Apr 2008 14:55:29 +0000 (07:55 -0700)] 
Adding Actionscript and Mxml support

16 years agoEbuild category should be 0, not 2
Ciaran McCreesh [Thu, 17 Apr 2008 20:52:18 +0000 (21:52 +0100)] 
Ebuild category should be 0, not 2

Ebuilds tend to be in a repository of their own, and tend to be the primary
product of that repository. We want them to be in category 0 so that a project
that primarily uses ebuilds will show up with ebuilds as the language.

16 years ago[NEW] created a new category of code to contain build-time scripts such as makefiles
Robin Luckey [Wed, 16 Apr 2008 19:13:37 +0000 (12:13 -0700)] 
[NEW] created a new category of code to contain build-time scripts such as makefiles

16 years ago[NEW] Support for make, autoconf
Ciaran McCreesh [Wed, 16 Apr 2008 19:06:37 +0000 (12:06 -0700)] 
[NEW] Support for make, autoconf

16 years agoDon't use the external find program.
Ciaran McCreesh [Mon, 14 Apr 2008 23:20:30 +0000 (00:20 +0100)] 
Don't use the external find program.

16 years ago[NEW] Support for Gentoo ebuild
ciaranm [Mon, 14 Apr 2008 17:48:53 +0000 (10:48 -0700)] 
[NEW] Support for Gentoo ebuild

16 years ago[NEW] *.nse is a Lua extension 1.0.1
Robin Luckey [Thu, 10 Apr 2008 18:42:07 +0000 (11:42 -0700)] 
[NEW] *.nse is a Lua extension

16 years ago[FIX] Put params to `file` in quotes -- sometimes the filenames have nasty characters...
Robin Luckey [Thu, 10 Apr 2008 18:37:14 +0000 (11:37 -0700)] 
[FIX] Put params to `file` in quotes -- sometimes the filenames have nasty characters in them

16 years ago[FIX] Remove leftover patch files (*.orig)
Ciaran McCreesh [Mon, 7 Apr 2008 20:38:31 +0000 (13:38 -0700)] 
[FIX] Remove leftover patch files (*.orig)

16 years agoSupport for VIMscript
Ciaran McCreesh [Mon, 7 Apr 2008 20:34:15 +0000 (13:34 -0700)] 
Support for VIMscript

16 years agoUnit tests for metafont mfmp
Giuseppe Bilotta [Sat, 15 Mar 2008 10:29:15 +0000 (11:29 +0100)] 
Unit tests for metafont

16 years agoUnit tests for metapost
Giuseppe Bilotta [Sat, 15 Mar 2008 10:06:44 +0000 (11:06 +0100)] 
Unit tests for metapost

16 years agoadd support for metafont and metapost
Giuseppe Bilotta [Sat, 15 Mar 2008 09:33:43 +0000 (10:33 +0100)] 
add support for metafont and metapost

16 years agobiglot: generic class for polyglots with two glots and a set of transitions biglot
Giuseppe Bilotta [Sat, 15 Mar 2008 09:16:20 +0000 (10:16 +0100)] 
biglot: generic class for polyglots with two glots and a set of transitions

16 years agoFix Pascal quoting master
Giuseppe Bilotta [Sat, 15 Mar 2008 13:20:23 +0000 (14:20 +0100)] 
Fix Pascal quoting

16 years ago[FIX] For --individual, move filenames to end of line (helps readability with long...
Robin Luckey [Mon, 24 Mar 2008 18:03:38 +0000 (11:03 -0700)] 
[FIX] For --individual, move filenames to end of line (helps readability with long names). Whitespace cleanups.

16 years agoohcount option -i or --individual added
root [Sat, 22 Mar 2008 12:05:18 +0000 (13:05 +0100)] 
ohcount option -i or --individual added

16 years ago[FIX] Whitespace cleanups
Robin Luckey [Mon, 24 Mar 2008 17:32:55 +0000 (10:32 -0700)] 
[FIX] Whitespace cleanups

16 years agoSupport for DCL command files
root [Thu, 20 Mar 2008 16:15:07 +0000 (17:15 +0100)] 
Support for DCL command files

16 years agoMerge branch 'cncpp'
Robin Luckey [Fri, 14 Mar 2008 21:35:12 +0000 (14:35 -0700)] 
Merge branch 'cncpp'

Conflicts:

ext/ohcount_native/generator.rb
lib/ohcount/detector.rb

16 years agosplit cncpp into c and cpp
ciaranm [Wed, 12 Mar 2008 14:12:50 +0000 (07:12 -0700)] 
split cncpp into c and cpp

16 years agoMerge branch 'pike'
Robin Luckey [Fri, 14 Mar 2008 21:04:03 +0000 (14:04 -0700)] 
Merge branch 'pike'

Conflicts:

lib/ohcount/detector.rb

16 years agoUnit tests for Pike.
Henrik Grubbstrom [Wed, 12 Mar 2008 22:21:48 +0000 (23:21 +0100)] 
Unit tests for Pike.

16 years agoAdded detector and parser for Pike (http://pike.ida.liu.se/).
Henrik Grubbstrom [Wed, 12 Mar 2008 21:55:57 +0000 (22:55 +0100)] 
Added detector and parser for Pike (pike.ida.liu.se/).

16 years agoMerge branch 'infiles'
fperrad [Tue, 11 Mar 2008 10:00:00 +0000 (03:00 -0700)] 
Merge branch 'infiles'

16 years agoUnit tests for .in-files.
Henrik Grubbstrom [Wed, 12 Mar 2008 22:34:36 +0000 (23:34 +0100)] 
Unit tests for .in-files.

16 years agoAdded disambiguator of *.in-files.
Henrik Grubbstrom [Wed, 12 Mar 2008 21:57:44 +0000 (22:57 +0100)] 
Added disambiguator of *.in-files.

16 years ago*.t and *.pod are well-known extensions for Perl
fperrad [Tue, 11 Mar 2008 10:00:00 +0000 (03:00 -0700)] 
*.t and *.pod are well-known extensions for Perl

16 years agotypo in debug message
Giuseppe Bilotta [Sun, 9 Mar 2008 13:23:01 +0000 (14:23 +0100)] 
typo in debug message

16 years ago[FIX] Add unit test for C quoting bug fix
Robin Luckey [Fri, 14 Mar 2008 20:40:17 +0000 (13:40 -0700)] 
[FIX] Add unit test for C quoting bug fix

16 years agoC/C++/C# have single-quoted strings
Giuseppe Bilotta [Sun, 9 Mar 2008 09:23:45 +0000 (10:23 +0100)] 
C/C++/C# have single-quoted strings

16 years agoadd .ltx as LaTeX extension
Giuseppe Bilotta [Thu, 6 Mar 2008 08:39:27 +0000 (09:39 +0100)] 
add .ltx as LaTeX extension

16 years ago[FIX] Ensure that temp directories are cleaned up in the case of an exception.
Robin Luckey [Fri, 14 Mar 2008 20:16:58 +0000 (13:16 -0700)] 
[FIX] Ensure that temp directories are cleaned up in the case of an exception.

16 years ago[CHANGE] Rename Fortran nice_names so that they sort well
Robin Luckey [Wed, 27 Feb 2008 21:50:34 +0000 (13:50 -0800)] 
[CHANGE] Rename Fortran nice_names so that they sort well

16 years agoMerge branch 'smalltalk'
Robin Luckey [Wed, 27 Feb 2008 21:48:12 +0000 (13:48 -0800)] 
Merge branch 'smalltalk'

Conflicts:

ext/ohcount_native/glots/c_monoglot.rb

16 years agoadd support for smalltalk
Paolo Bonzini [Wed, 27 Feb 2008 10:21:36 +0000 (11:21 +0100)] 
add support for smalltalk