Replies: 4 comments 28 replies
-
Pomsky's lexer uses the is_alphabetic and is_alphanumeric functions to determine whether a code point is a letter or number. Concretely, this means that an identifier must consist of
Note that an identifier must not start with a number, so the first code point is either a letter or (?U)[\p{Alpha}_][\p{Alpha}\pN_]* The Also note that capturing group names must be ASCII-only (so they could be matched with |
Beta Was this translation helpful? Give feedback.
-
@Aloso thanks for the previous answer! Now, I just want to check if the direction I'm taking with the plugin is ok. This is currently invoking the CLI executable, which has been set in the Pomsky settings. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your report. No problem, I accept criticisms 😄 My target for the first release is to allow people to edit Pomsky files and compile them without switching to the Playground. UI
UX
Parser
Other
|
Beta Was this translation helpful? Give feedback.
-
@Aloso I've updated the plugin to cover the latest changes in |
Beta Was this translation helpful? Give feedback.
-
Hey @Aloso, need help to come up with a regex that supports all the symbols Pomsky accepts as valid for group names and variable names. Basically I need to replace
a-zA-Z
with the actual range.idea-pomsky/src/main/java/com/github/lppedd/idea/pomsky/lang/lexer/pomsky.flex
Line 39 in 430e722
See https://pomsky-lang.org/docs/reference/grammar/#name
Beta Was this translation helpful? Give feedback.
All reactions