dbremner / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

Comments in Foma don't ignore > (greater than) and " (double quotation mark) characters #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Create a Foma file with comments which contain > (greater than) or " (double 
quotation mark) characters. For example:

# Reglas para diminuitivos (para implementar con expresiones regulares):
#1. Si termina en U, añade -itu, sin importar el genero. 
#    Ejs: allqu > allqitu, 
#         "perrito" o "perrita"  
LEXICON CC_sust_diminuitivos
[Diminuitivo]:+itu CC_sust_bif;

The above example generates the following error messages:

***Syntax error on line 58 column 18 at '>'
***Syntax error on line 59 column 12 at '"'

What version of the product are you using? On what operating system?

Foma version 0.9.16alpha, running in Debian Testing Linux 3.1.0-1-amd64

Attached are the two Foma to test this.

Please provide any additional information below.

Original issue reported on code.google.com by amosba...@gmail.com on 19 Sep 2012 at 11:44

Attachments:

GoogleCodeExporter commented 9 years ago
OK, you can close this bug. If I use ! for comments instead of #, then the 
problem disappears. 

By the way, Foma really needs documentation on comments. I had to read the book 
"Finite State Morphology", to figure out how to do comments correctly.

Original comment by amosba...@gmail.com on 19 Sep 2012 at 4:50

GoogleCodeExporter commented 9 years ago
Para los archivos *.lex para comentarios se utilizan el simbolo de admiración!.
Ejemplo:

!Comentario

Para los archivos *.foma para comentarios se utiliza el simbolo numeral #.
Ejemplo:

#Comentario

Original comment by saca.nes...@gmail.com on 22 Sep 2012 at 4:24

GoogleCodeExporter commented 9 years ago

Original comment by mans.hul...@gmail.com on 7 Nov 2012 at 10:52