/[svn]/linuxsampler/trunk/src/scriptvm/common.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3284 by schoenebeck, Mon Jun 5 18:40:18 2017 UTC revision 3285 by schoenebeck, Thu Jun 22 10:45:38 2017 UTC
# Line 910  namespace LinuxSampler { Line 910  namespace LinuxSampler {
910      };      };
911    
912      /**      /**
913         * Reflects the precise position and span of a specific code block within
914         * a script. This is currently only used for the locations of commented
915         * code blocks due to preprocessor statements.
916         *
917         * @see VMParserContext::preprocessorComments()
918         */
919        struct CodeBlock {
920            int firstLine; ///< The first line number of this code block within the script (indexed with 1 being the very first line).
921            int lastLine; ///< The last line number of this code block within the script.
922            int firstColumn; ///< The first column of this code block within the script (indexed with 1 being the very first column).
923            int lastColumn; ///< The last column of this code block within the script.
924        };
925    
926        /**
927       * Encapsulates a noteworty parser issue. This encompasses the type of the       * Encapsulates a noteworty parser issue. This encompasses the type of the
928       * issue (either a parser error or parser warning), a human readable       * issue (either a parser error or parser warning), a human readable
929       * explanation text of the error or warning and the location of the       * explanation text of the error or warning and the location of the
# Line 1002  namespace LinuxSampler { Line 1016  namespace LinuxSampler {
1016          virtual std::vector<ParserIssue> warnings() const = 0;          virtual std::vector<ParserIssue> warnings() const = 0;
1017    
1018          /**          /**
1019             * Returns all code blocks of the script which were filtered out by the
1020             * preprocessor.
1021             */
1022            virtual std::vector<CodeBlock> preprocessorComments() const = 0;
1023    
1024            /**
1025           * Returns the translated virtual machine representation of an event           * Returns the translated virtual machine representation of an event
1026           * handler block (i.e. "on note ... end on" code block) within the           * handler block (i.e. "on note ... end on" code block) within the
1027           * parsed script. This translated representation of the event handler           * parsed script. This translated representation of the event handler

Legend:
Removed from v.3284  
changed lines
  Added in v.3285

  ViewVC Help
Powered by ViewVC