/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-06-01 18:16:29 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220601181629-meq45diu7dh8iied
Made sure that no text rows exeed 80 columns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
  
6
6
  public abstract class Token : GLib.Object {
7
7
    
8
 
    //public static int32 VALUES_OUTPUT_PRECISION_FACTOR = (int)Math.pow(10, VALUES_OUTPUT_PRECISION_DIGITS);
9
 
    
10
 
    
11
8
    /** Max size of a single token */
12
9
    public const int32 MAX_TOKEN_STRING_LENGTH = 64;
13
10
    /** Max size of an expression */
140
137
    public virtual Prio priority {public get; protected construct set;}
141
138
    
142
139
    /** Starting position of the token in the expression */
143
 
    protected int32 position;
 
140
    public int32 position {public get; protected set;}
144
141
    
145
142
    private int internal_next_child_num;
146
143
    /** The index of the next child */
216
213
     * 
217
214
     * and index of 0 is illegal.
218
215
     */
219
 
    public unowned Token? get_child (int32 index) requires (index > 0 && index <= max_num_child) {
 
216
    public unowned Token? get_child (int32 index)
 
217
                          requires (index > 0 && index <= max_num_child) {
220
218
      
221
219
      return children[index -1 ];
222
220
    }
233
231
     * 
234
232
     * and index of 0 is illegal.
235
233
     */
236
 
    public void set_child (int32 index, Token? child) requires (index > 0 && index <= max_num_child) {
 
234
    public void set_child (int32 index, Token? child)
 
235
                requires (index > 0 && index <= max_num_child) {
237
236
      
238
237
      children[index - 1] = child;
239
238