Package org.erlide.util.erlang

Examples of org.erlide.util.erlang.TermParser


        public RawOption(final String name, final String description, final String tooltip) {
            super(name, description, tooltip);
        }

        public OtpErlangObject toTerm(final String value) {
            final TermParser parser = OtpErlang.getTermParser();
            OtpErlangObject result;
            try {
                String val;
                if (value.charAt(0) != '[') {
                    val = "[" + value + "]";
                } else {
                    val = value;
                }
                result = parser.parse(val);
            } catch (final Exception e) {
                result = OtpErlang.mkList();
            }
            return result;
        }
View Full Code Here

TOP

Related Classes of org.erlide.util.erlang.TermParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.