mitchell [Thu, 22 May 2008 21:38:00 +0000 (17:38 -0400)]
Removed line counter callbacks for comments and strings; they waste parser time.
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.
mitchell [Thu, 22 May 2008 21:08:37 +0000 (17:08 -0400)]
Wrapped lua.rl's process_last_line call in conditional.
mitchell [Thu, 22 May 2008 21:07:25 +0000 (17:07 -0400)]
Prettied up c.rl and lua.rl parsers.
mitchell [Thu, 22 May 2008 21:04:30 +0000 (17:04 -0400)]
Updated lua.rl parser to split line counting and entity machines.
mitchell [Thu, 22 May 2008 21:03:27 +0000 (17:03 -0400)]
Added ls action to common.rl for consistency.
mitchell [Thu, 22 May 2008 21:02:48 +0000 (17:02 -0400)]
Updated PARSER_DOC to fix typo.
mitchell [Thu, 22 May 2008 20:56:26 +0000 (16:56 -0400)]
Updated PARSER_DOC to include entity machines.
mitchell [Thu, 22 May 2008 20:33:43 +0000 (16:33 -0400)]
Added the c.rl entity machine; separated from line counting machine.
mitchell [Thu, 22 May 2008 02:29:26 +0000 (22:29 -0400)]
Added my details to the top of the parsers.
mitchell [Wed, 21 May 2008 18:04:10 +0000 (14:04 -0400)]
Updated comment in lua.rl.
mitchell [Wed, 21 May 2008 17:56:36 +0000 (13:56 -0400)]
Removed ragel_parser_defines.h in favor of ragel_parser_macros.h
mitchell [Wed, 21 May 2008 17:54:31 +0000 (13:54 -0400)]
Updated PARSER_DOC to include documentation on macros.
mitchell [Wed, 21 May 2008 17:52:52 +0000 (13:52 -0400)]
Renamed ragel_parser_defines.h to ragel_parser_macros.h; updated parsers.
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.
mitchell [Wed, 21 May 2008 16:48:42 +0000 (12:48 -0400)]
Added comment define to ragel_parser_defines.h for consistency.
mitchell [Wed, 21 May 2008 16:46:08 +0000 (12:46 -0400)]
Added ragel_parser_defines.h with common defines for parsers.
mitchell [Wed, 21 May 2008 15:53:29 +0000 (11:53 -0400)]
Updated formatting of PARSER_DOC.
mitchell [Wed, 21 May 2008 15:45:10 +0000 (11:45 -0400)]
Updated PARSER_DOC to include information on the different Ragel machines.
mitchell [Wed, 21 May 2008 15:15:37 +0000 (11:15 -0400)]
Left off some documentation for parse_lua in lua.rl.
mitchell [Wed, 21 May 2008 15:14:37 +0000 (11:14 -0400)]
Removed [lang]_callback C function name requirement; can just be callback.
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.
mitchell [Wed, 21 May 2008 15:04:26 +0000 (11:04 -0400)]
Updated PARSER_DOC to recommend prefixing definitions to avoid conflics.
mitchell [Tue, 20 May 2008 22:10:00 +0000 (18:10 -0400)]
Added Lua Ragel parser.
mitchell [Tue, 20 May 2008 22:08:17 +0000 (18:08 -0400)]
Updated PARSER_DOC to include non-conflicting constant names.
mitchell [Tue, 20 May 2008 22:03:07 +0000 (18:03 -0400)]
Removed C_ANY and company from c.rl; not valid C.
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.
mitchell [Tue, 20 May 2008 20:28:07 +0000 (16:28 -0400)]
Updated PARSER_DOC to discuss why variable/function renaming is necessary.
mitchell [Tue, 20 May 2008 17:35:38 +0000 (13:35 -0400)]
Added 'warning' preprocessor keyword to c.rl.
mitchell [Tue, 20 May 2008 17:15:43 +0000 (13:15 -0400)]
c.rl's strings contain escaped newlines, not newlines.
mitchell [Tue, 20 May 2008 16:33:37 +0000 (12:33 -0400)]
c.rl's preprocessor statements can contain block comments.
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.
mitchell [Tue, 20 May 2008 16:28:41 +0000 (12:28 -0400)]
c.rl assumes syntactically correct C now.
mitchell [Tue, 20 May 2008 03:42:30 +0000 (23:42 -0400)]
Comments in preprocessor statments aren't working in c.rl; removed.
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.
mitchell [Tue, 20 May 2008 03:23:42 +0000 (23:23 -0400)]
Added 3 more conditionals to common.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.
mitchell [Tue, 20 May 2008 02:54:23 +0000 (22:54 -0400)]
Updated PARSER_DOC to reflect counting blanks inside multi-line patterns.
mitchell [Tue, 20 May 2008 02:52:37 +0000 (22:52 -0400)]
Added ws definition for [\t ].
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.
mitchell [Tue, 20 May 2008 00:30:00 +0000 (20:30 -0400)]
Added initial documentation for writing parsers.
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.
mitchell [Mon, 19 May 2008 21:16:51 +0000 (17:16 -0400)]
Added tilde (~) operator to c.rl.
mitchell [Mon, 19 May 2008 20:35:56 +0000 (16:35 -0400)]
Fixed bug with escape sequences in c.rl's strings.
mitchell [Mon, 19 May 2008 19:52:29 +0000 (15:52 -0400)]
Forgot XOR (^) operator in c.rl.
mitchell [Sat, 17 May 2008 02:21:04 +0000 (22:21 -0400)]
Forgot to change to ragel_parse_yield_line in ragel_parser.c.
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.
mitchell [Sat, 17 May 2008 00:41:03 +0000 (20:41 -0400)]
Switched order of c.rl's machine definitions as in the scanner.
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.
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.
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.
mitchell [Fri, 16 May 2008 18:42:03 +0000 (14:42 -0400)]
escaped_newline should be before nonnewline in common.rl's line comments.
mitchell [Fri, 16 May 2008 18:40:18 +0000 (14:40 -0400)]
c.rl's preprocessors won't eat newlines, which ignore newline callbacks.
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.
mitchell [Fri, 16 May 2008 17:22:11 +0000 (13:22 -0400)]
Eliminated potential for double inclusion of parser.h.
mitchell [Fri, 16 May 2008 01:05:25 +0000 (21:05 -0400)]
Updated Rakefile to compile Ragel parsers automatically.
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.
mitchell [Thu, 15 May 2008 23:59:17 +0000 (19:59 -0400)]
Added C Ragel parser.
mitchell [Thu, 15 May 2008 23:58:59 +0000 (19:58 -0400)]
Added common.rl, common Ragel definitions, actions, etc.
Robin Luckey [Tue, 29 Apr 2008 23:52:21 +0000 (16:52 -0700)]
[FIX] Whitespace cleanups
Robin Luckey [Tue, 29 Apr 2008 23:49:00 +0000 (16:49 -0700)]
Merge branch 'php'
Gert Vanthienen [Tue, 29 Apr 2008 11:35:21 +0000 (13:35 +0200)]
Adding support for Scala (www.scala-lang.org)
Gwoo [Tue, 29 Apr 2008 23:35:27 +0000 (16:35 -0700)]
fixes #247, php #-comments. Also added #-comments to sql
Robin Luckey [Mon, 28 Apr 2008 22:32:44 +0000 (15:32 -0700)]
[FIX] Typo in actionscript sloc_info
Gwoo [Sat, 26 Apr 2008 14:55:29 +0000 (07:55 -0700)]
Adding Actionscript and Mxml support
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.
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
Ciaran McCreesh [Wed, 16 Apr 2008 19:06:37 +0000 (12:06 -0700)]
[NEW] Support for make, autoconf
Ciaran McCreesh [Mon, 14 Apr 2008 23:20:30 +0000 (00:20 +0100)]
Don't use the external find program.
ciaranm [Mon, 14 Apr 2008 17:48:53 +0000 (10:48 -0700)]
[NEW] Support for Gentoo ebuild
Robin Luckey [Thu, 10 Apr 2008 18:42:07 +0000 (11:42 -0700)]
[NEW] *.nse is a Lua extension
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
Ciaran McCreesh [Mon, 7 Apr 2008 20:38:31 +0000 (13:38 -0700)]
[FIX] Remove leftover patch files (*.orig)
Ciaran McCreesh [Mon, 7 Apr 2008 20:34:15 +0000 (13:34 -0700)]
Support for VIMscript
Giuseppe Bilotta [Sat, 15 Mar 2008 10:29:15 +0000 (11:29 +0100)]
Unit tests for metafont
Giuseppe Bilotta [Sat, 15 Mar 2008 10:06:44 +0000 (11:06 +0100)]
Unit tests for metapost
Giuseppe Bilotta [Sat, 15 Mar 2008 09:33:43 +0000 (10:33 +0100)]
add support for metafont and metapost
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
Giuseppe Bilotta [Sat, 15 Mar 2008 13:20:23 +0000 (14:20 +0100)]
Fix Pascal quoting
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.
root [Sat, 22 Mar 2008 12:05:18 +0000 (13:05 +0100)]
ohcount option -i or --individual added
Robin Luckey [Mon, 24 Mar 2008 17:32:55 +0000 (10:32 -0700)]
[FIX] Whitespace cleanups
root [Thu, 20 Mar 2008 16:15:07 +0000 (17:15 +0100)]
Support for DCL command files
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
ciaranm [Wed, 12 Mar 2008 14:12:50 +0000 (07:12 -0700)]
split cncpp into c and cpp
Robin Luckey [Fri, 14 Mar 2008 21:04:03 +0000 (14:04 -0700)]
Merge branch 'pike'
Conflicts:
lib/ohcount/detector.rb
Henrik Grubbstrom [Wed, 12 Mar 2008 22:21:48 +0000 (23:21 +0100)]
Unit tests for Pike.
Henrik Grubbstrom [Wed, 12 Mar 2008 21:55:57 +0000 (22:55 +0100)]
Added detector and parser for Pike (pike.ida.liu.se/).
fperrad [Tue, 11 Mar 2008 10:00:00 +0000 (03:00 -0700)]
Merge branch 'infiles'
Henrik Grubbstrom [Wed, 12 Mar 2008 22:34:36 +0000 (23:34 +0100)]
Unit tests for .in-files.
Henrik Grubbstrom [Wed, 12 Mar 2008 21:57:44 +0000 (22:57 +0100)]
Added disambiguator of *.in-files.
fperrad [Tue, 11 Mar 2008 10:00:00 +0000 (03:00 -0700)]
*.t and *.pod are well-known extensions for Perl
Giuseppe Bilotta [Sun, 9 Mar 2008 13:23:01 +0000 (14:23 +0100)]
typo in debug message
Robin Luckey [Fri, 14 Mar 2008 20:40:17 +0000 (13:40 -0700)]
[FIX] Add unit test for C quoting bug fix
Giuseppe Bilotta [Sun, 9 Mar 2008 09:23:45 +0000 (10:23 +0100)]
C/C++/C# have single-quoted strings
Giuseppe Bilotta [Thu, 6 Mar 2008 08:39:27 +0000 (09:39 +0100)]
add .ltx as LaTeX extension
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.
Robin Luckey [Wed, 27 Feb 2008 21:50:34 +0000 (13:50 -0800)]
[CHANGE] Rename Fortran nice_names so that they sort well
Robin Luckey [Wed, 27 Feb 2008 21:48:12 +0000 (13:48 -0800)]
Merge branch 'smalltalk'
Conflicts:
ext/ohcount_native/glots/c_monoglot.rb
Paolo Bonzini [Wed, 27 Feb 2008 10:21:36 +0000 (11:21 +0100)]
add support for smalltalk