Skip to content

Commit 41cd426

Browse files
committed
Minute changes to propositional.ast in comments
1 parent 2d63fff commit 41cd426

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

aima-csharp/logic/propositional/parsing/ast/ComplexSentence.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public ComplexSentence(Connective connective, params Sentence[] sentences)
4949
* @param sentenceL
5050
* the left hand sentence.
5151
* @param binaryConnective
52-
* the binary connective.0
53-
12 * @param sentenceR
52+
* the binary connective.
53+
* @param sentenceR
5454
* the right hand sentence.
5555
*/
5656
public ComplexSentence(Sentence sentenceL, Connective binaryConnective, Sentence sentenceR) : this(binaryConnective, sentenceL, sentenceR)

aima-csharp/logic/propositional/parsing/ast/Connective.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace aima.core.logic.propositional.parsing.ast
2222
* OPERATOR PRECEDENCE: ~, &, |, =>, <=>
2323
* </pre>
2424
*
25+
* @author Ciaran O'Reilly
2526
* @author Avinash Agarwal
2627
*
2728
*/

aima-csharp/logic/propositional/parsing/ast/PropositionSymbol.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ namespace aima.core.logic.propositional.parsing.ast
1212
* proposition.< br >
1313
* < br >
1414
* < b > Note </ b >: While the book states:< br >
15-
*'We use symbols that start with an upper case letter and may contain other
15+
* 'We use symbols that start with an upper case letter and may contain other
1616
* letters or subscripts'. In this implementation we allow any legal java
1717
* identifier to stand in for a proposition symbol.
1818
*
19-
*@author Ciaran O'Reilly
19+
* @author Ciaran O'Reilly
2020
* @author Ravi Mohan
2121
*
22-
*@see SourceVersion#isIdentifier(CharSequence)
22+
* @see SourceVersion#isIdentifier(CharSequence)
2323
*/
2424

2525
public class PropositionSymbol : AtomicSentence

aima-csharp/logic/propositional/parsing/ast/Sentence.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ namespace aima.core.logic.propositional.parsing.ast
1212
* Note: this class hierarchy defines the abstract syntax representation used
1313
* for representing propositional logic.
1414
*
15+
* @author Ciaran O'Reilly
16+
* @author Ravi Mohan
1517
* @author Avinash Agarwal
1618
*
1719
*/
@@ -29,10 +31,10 @@ public virtual Connective getConnective()
2931
}
3032

3133
/**
32-
*
33-
* @return the number of simpler sentences contained in this sentence. Will
34-
* only be > 0 if a Complex Sentence.
35-
*/
34+
*
35+
* @return the number of simpler sentences contained in this sentence. Will
36+
* only be > 0 if a Complex Sentence.
37+
*/
3638
public virtual int getNumberSimplerSentences()
3739
{
3840
return 0;
@@ -256,10 +258,9 @@ public static Sentence newConjunction(List<? extends Sentence> conjuncts)
256258
}
257259
return new ComplexSentence(Util.first(conjuncts), Connective.AND, newConjunction(Util.rest(conjuncts)));
258260
}
259-
260-
//
261+
261262
// PROTECTED
262-
//
263+
263264
protected bool hasConnective(Connective connective)
264265
{
265266
// Note: can use '==' as Connective is an enum.

0 commit comments

Comments
 (0)