conversations
list | source
string | stack
string |
---|---|---|
[
{
"from": "human",
"value": "Add generated flex lexer with PointcutTypes mapping\n"
},
{
"from": "gpt",
"value": "package com.aopphp.go.parser;\nimport com.intellij.lexer.*;\nimport com.intellij.psi.tree.IElementType;\nimport static com.aopphp.go.psi.PointcutTypes.*;\n\n%%\n\n%{\n public PointcutLexer() {\n this((java.io.Reader)null);\n }\n%}\n\n%public\n%class PointcutLexer\n%implements FlexLexer\n%function advance\n%type IElementType\n%unicode\n\nEOL=\"\\r\"|\"\\n\"|\"\\r\\n\"\nLINE_WS=[\\ \\t\\f]\nWHITE_SPACE=({LINE_WS}|{EOL})+\n\nCOMMENT=\"//\".*\nNAMEPART=[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*\nSTRING=('([^'\\\\]|\\\\.)*'|\\\"([^\\\"\\\\]|\\\\.)*\\\")\n\n%%\n<YYINITIAL> {\n {WHITE_SPACE} { return com.intellij.psi.TokenType.WHITE_SPACE; }\n\n \"\\\\\" { return com.aopphp.go.psi.PointcutTypes.NSSEPARATOR; }\n \"@\" { return com.aopphp.go.psi.PointcutTypes.ANNOTATION; }\n \"access\" { return com.aopphp.go.psi.PointcutTypes.ACCESS; }\n \"execution\" { return com.aopphp.go.psi.PointcutTypes.EXECUTION; }\n \"within\" { return com.aopphp.go.psi.PointcutTypes.WITHIN; }\n \"initialization\" { return com.aopphp.go.psi.PointcutTypes.INITIALIZATION; }\n \"staticinitialization\" { return com.aopphp.go.psi.PointcutTypes.STATICINITIALIZATION; }\n \"cflowbelow\" { return com.aopphp.go.psi.PointcutTypes.CFLOWBELOW; }\n \"dynamic\" { return com.aopphp.go.psi.PointcutTypes.DYNAMIC; }\n \"public\" { return com.aopphp.go.psi.PointcutTypes.PUBLIC; }\n \"protected\" { return com.aopphp.go.psi.PointcutTypes.PROTECTED; }\n \"private\" { return com.aopphp.go.psi.PointcutTypes.PRIVATE; }\n \"final\" { return com.aopphp.go.psi.PointcutTypes.FINAL; }\n\n {COMMENT} { return com.aopphp.go.psi.PointcutTypes.COMMENT; }\n {NAMEPART} { return com.aopphp.go.psi.PointcutTypes.NAMEPART; }\n {STRING} { return com.aopphp.go.psi.PointcutTypes.STRING; }\n\n [^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }\n}\n"
}
] | jflex | chosen |
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 3