TokenValue

record TokenValue "Value of token"
    extends Modelica.Icons.Record;

    TokenType tokenType "Type of token";
    Real real "Value if tokenType == TokenType.RealToken";
    Integer integer "Value if tokenType == TokenType.IntegerToken";
    Boolean boolean "Value if tokenType == TokenType.BooleanToken";
    String string "Value if tokenType == TokenType.StringToken/IdentifierToken/DelimiterToken";

    annotation (Documentation(info = "<html>\n\n</html>"));
end TokenValue;