Skip to content

Commit

Permalink
applied John Fieber's patches to the Notation3 functionality from Lig…
Browse files Browse the repository at this point in the history
…hthouse tickets [#6 state:resolved] and [#7 state:resolved]
  • Loading branch information
Tom Morris committed Feb 2, 2009
1 parent d8e8b0d commit e8334fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/reddy/n3_grammar.treetop
Expand Up @@ -73,9 +73,13 @@ grammar N3Grammer
end

rule literal
(string1 / string2) ("^^<" uri:URI_Reference ">" / "@" [a-z]+ )?
(string1 / string2) ("^^<" uri:URI_Reference ">" / "@" language )?
end

rule language
[a-z]+ ( "-" [a-z0-9]+ )*
end

rule localname
fragid
end
Expand Down Expand Up @@ -110,7 +114,7 @@ grammar N3Grammer

# " constant-value-with-escaping "
rule string1
'"' string1_char+ '"'
'""' !["] / '"' string1_char+ '"'
end

rule string1_char
Expand Down
1 change: 0 additions & 1 deletion lib/reddy/n3parser.rb
@@ -1,5 +1,4 @@
require 'treetop'
include Reddy

Treetop.load(File.join(File.dirname(__FILE__), "n3_grammar"))

Expand Down

0 comments on commit e8334fb

Please sign in to comment.