Search in sources :

Example 1 with TMultilineStringContent

use of de.be4.classicalb.core.parser.node.TMultilineStringContent in project probparsers by bendisposto.

the class SyntaxExtensionTranslator method caseAMultilineStringExpression.

@Override
public void caseAMultilineStringExpression(AMultilineStringExpression node) {
    final TMultilineStringContent content = node.getContent();
    final String text = content.getText();
    TStringLiteral tStringLiteral = new TStringLiteral(text, content.getLine(), content.getPos());
    AStringExpression stringNode = new AStringExpression(tStringLiteral);
    stringNode.setStartPos(node.getStartPos());
    stringNode.setEndPos(node.getEndPos());
    node.replaceBy(stringNode);
}
Also used : TMultilineStringContent(de.be4.classicalb.core.parser.node.TMultilineStringContent) TStringLiteral(de.be4.classicalb.core.parser.node.TStringLiteral) AStringExpression(de.be4.classicalb.core.parser.node.AStringExpression)

Aggregations

AStringExpression (de.be4.classicalb.core.parser.node.AStringExpression)1 TMultilineStringContent (de.be4.classicalb.core.parser.node.TMultilineStringContent)1 TStringLiteral (de.be4.classicalb.core.parser.node.TStringLiteral)1