Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が次のようなものを持っているとしましょう:
rule: (rule2 | rule3) {;}; //How can i get at this point rule2 or rule3 text? rule2: HELLO+; rule3: WORLD*;
rule2またはrule3のテキストを取得したいのですが、取得するのはaとatype_returnだけを取得するだけです。startstop
type_return
start
stop
何か案は?
試す:
rule : r=(rule2 | rule3) {String txt = $r.text;} ;