Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret multiple regular expression terms in a regular expression operator as alternatives in C2 #64

Open
Akron opened this issue Jul 16, 2019 · 1 comment
Labels

Comments

@Akron
Copy link
Member

Akron commented Jul 16, 2019

First fix #66!

C2 supports a list of regular expressions inside the regular expression operator #REG(...) that are interpreted as alternatives.

At the moment KorAP interprets #REG(Bal.?m Wau.*) as a sequence of /Bal.?m/ and /Wau.*/ (see #63 regarding wrong placeholder interpretation). The correct interpretation would be either an or-group or the joined regex /(?:Bal.?m)|(?:Wau.*)/.

@Akron Akron added the bug label Jul 16, 2019
@Akron
Copy link
Member Author

Akron commented Jul 16, 2019

The first interpretation with an or-group seems to be preferable and technical closer to C2s implementation. The advantage is that intermediate interpretations such as Glemm are able to interpret these regular expressions separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant