PascalSyntax.wiki
changeset 2019 12cc62c0ae38
parent 2016 3e426e5979ec
equal deleted inserted replaced
2018:0a12cd51adf3 2019:12cc62c0ae38
     1 #summary Hedgewars-specific Pascal syntax rules
     1 #summary Hedgewars-specific Pascal syntax rules
     2 = Hedgewars-specific Pascal syntax rules =
     2 = Hedgewars-specific Pascal syntax rules =
     3 
     3 
     4 When programming in Pascal for Hedgewars, we have two rules which must be always obeyed. This is because of our tool `pas2c` which doesn't fully understand Pascal yet. If these rules are broken, `pas2c` will fail to operate.
     4 When programming in Pascal for Hedgewars, we have two rules which must be always obeyed. This is because of our tool [pas2CTutorial Pas2C] which doesn't fully understand Pascal yet. If these rules are broken, Pas2C will fail to operate.
     5 
     5 
     6 == Pascal rules for `pas2c` ==
     6 == Pascal rules for `pas2c` ==
     7 
     7 
     8  # Never use `not` without brackets
     8  # Never use `not` without brackets
     9  # Never use `in` with numerals
     9  # Never use `in` with numerals