Implements Modula-2, Modula-3, Oberon
authorRobin Luckey <rluckey@geek.net>
Tue, 30 Mar 2010 17:49:38 +0000 (10:49 -0700)
committerRobin Luckey <rluckey@geek.net>
Tue, 30 Mar 2010 17:49:38 +0000 (10:49 -0700)
commitd57f92270769f58ef18235749cfbd85c309f1160
tree5a919f9789c8ea75c39950a70a2c6f3081d0d9e5
parenta3530cefffa9ed17ab813b40eedb626284cc97d6
Implements Modula-2, Modula-3, Oberon

We recognize extensions m3, i3, mod, ob2, obn, def.

Ticket #30 requests that we also recognize extenions `m` and `d`.
That is not implemented here, because that requires disambiguation
from other languages, so ticket #30 remains open.
22 files changed:
src/hash/extensions.gperf
src/hash/languages.gperf
src/hash/parsers.gperf
src/languages.h
src/parsers/modula2.rl [new file with mode: 0644]
src/parsers/modula3.rl [new file with mode: 0644]
src/parsers/oberon.rl [new file with mode: 0644]
test/expected_dir/sample.i3 [new file with mode: 0644]
test/expected_dir/sample.m3 [new file with mode: 0644]
test/expected_dir/sample.mod [new file with mode: 0644]
test/expected_dir/sample.ob2 [new file with mode: 0644]
test/expected_dir/sample.obn [new file with mode: 0644]
test/expected_dir/sampleDef.def [new file with mode: 0644]
test/expected_dir/sampleImp.mod [new file with mode: 0644]
test/src_dir/sample.i3 [new file with mode: 0644]
test/src_dir/sample.m3 [new file with mode: 0644]
test/src_dir/sample.mod [new file with mode: 0644]
test/src_dir/sample.ob2 [new file with mode: 0644]
test/src_dir/sample.obn [new file with mode: 0644]
test/src_dir/sampleDef.def [new file with mode: 0644]
test/src_dir/sampleImp.mod [new file with mode: 0644]
test/unit/parser_test.h