mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
50 lines
556 B
Plaintext
50 lines
556 B
Plaintext
![]() |
@precedence {
|
||
|
p1
|
||
|
p2
|
||
|
}
|
||
|
|
||
|
@top Text { textItem* }
|
||
|
|
||
|
@skip { space }
|
||
|
|
||
|
@tokens {
|
||
|
space { @whitespace+ }
|
||
|
|
||
|
Offset { $[-]?$[1-9]$[0-9]* }
|
||
|
Global { $[XCSDATFPR]$[1-9]$[0-9]* }
|
||
|
|
||
|
Word { ![@{|} \t\n]+ }
|
||
|
|
||
|
Gram { $[-a-zA-Z0-9]+ }
|
||
|
|
||
|
@precedence { Word, space }
|
||
|
}
|
||
|
|
||
|
textItem {
|
||
|
!p1 ref |
|
||
|
!p2 Word
|
||
|
}
|
||
|
|
||
|
ref {
|
||
|
RefEntity |
|
||
|
RefSyntactic
|
||
|
}
|
||
|
|
||
|
RefEntity {
|
||
|
"@{" Global "|" grams "}"
|
||
|
}
|
||
|
|
||
|
RefSyntactic {
|
||
|
"@{" Offset "|" Nominal "}"
|
||
|
}
|
||
|
|
||
|
Nominal { Word+ }
|
||
|
|
||
|
grams {
|
||
|
Gram |
|
||
|
Gram "," grams
|
||
|
}
|
||
|
|
||
|
@detectDelim
|
||
|
|
||
|
@external propSource highlighting from "./highlight.ts"
|