User Tools

Site Tools


features

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
features [2020/02/24 18:30]
jtwine [Sequence Writing Shortcut]
features [2020/02/26 17:15]
jtwine [Enhanced Semantic Checks and Warnings]
Line 31: Line 31:
 Also, address ranges are validated against the specified Pod as well. Also, address ranges are validated against the specified Pod as well.
  
-The 10LC compiler will also check for things like labels ​or programs ​that are never referenced, helping you look for bugs like cut-n-paste errors where you may have forgotten to change something.+The 10LC compiler will also check for things like Programs, Labels, Constants ​or Aliases ​that are never referenced, helping you look for bugs like cut-n-paste errors where you may have forgotten to change something. ​ Here are some example diagnostic warnings: 
 + 
 +<​code>​ 
 +ScriptFile.s(45,​1):​ Warning L0525: A global Constant named Speech1 was created but was never referenced 
 +ScriptFile.s(51,​1):​ Warning L0529: A global Alias named Unused was created but was never referenced 
 +ScriptFile.s(74,​5):​ Warning L0518: Program Main contains a defined Label UnusedLabel which was never referenced 
 +ScriptFile.s(230,​5):​ Warning L0519: Program TestSound contains a constant named None which was never referenced 
 +ScriptFile.s(231,​5):​ Warning L0519: Program TestSound contains a constant named Mute1 which was never referenced 
 +ScriptFile.s(237,​5):​ Warning L0519: Program TestSound contains a constant named Enable2 which was never referenced</​code>​
  
 You can check out the full list of [[Warnings]] and [[Errors]] that can be emitted by 10LC. You can check out the full list of [[Warnings]] and [[Errors]] that can be emitted by 10LC.
features.txt · Last modified: 2020/02/26 17:15 by jtwine