Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pysemigroup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
PAPERMAN Charles
pysemigroup
Commits
dd61b553
Commit
dd61b553
authored
1 year ago
by
cha
Browse files
Options
Downloads
Patches
Plain Diff
rational expression with extended letters
parent
41c27a80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
parsers/rational_expression.lark
+62
-0
62 additions, 0 deletions
parsers/rational_expression.lark
with
62 additions
and
0 deletions
parsers/rational_expression.lark
0 → 100644
+
62
−
0
View file @
dd61b553
?rat : power
| union
| diff
| word
| concat
| kleene
| kleenep
| par
| tokens
| dot
| optional
?par : "(" rat ")"
?letter : simple_letter
| "\l(" hash ")"
| "\l" tuple
hash : hashable
simple_letter: LETTER
union : rat "|" rat
kleene : (par | letter | dot) "*"
kleenep : (par | letter | dot) "+"
optional : (par | letter | dot) "?"
diff : rat "-" rat
dot : "."
power : rat "{" INT "}" | rat "{" INT"," INT "}"
word : letter+
?concat : rat+
?tokens : empty_word
| complement
| shuffle
| intersection
| unionf
| differencef
| symmetric_difference
| is_superword
| is_subword
| contains
empty_word : "\e"
complement : "\complement" par
intersection : "\intersection(" rat "," rat ")"
unionf : "\\union(" rat "," rat ")"
differencef : "\difference(" rat "," rat ")"
symmetric_difference: "\symmetric_difference(" rat "," rat ")"
shuffle : "\shuffle(" rat "," rat ")"
is_superword : "\is_superword(" word ")"
is_subword : "\is_subword(" word ")"
contains : "\contains(" word ")"
%import utils.hashable
%import utils.tuple
%import common.LETTER
%import common.INT
%import common.WS
%ignore WS
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment