Merge: doc: fixed some typos and other misc. corrections
[nit.git] / src / parser / parser_work.nit
index 66941c2..217a09a 100644 (file)
@@ -40,7 +40,7 @@ class Parser
 
        init
        do
-               build_reduce_table
+               self.reduce_table = once build_reduce_table
        end
 
        # Do a transition in the automata
@@ -155,7 +155,7 @@ class Parser
        end
 
        private var reduce_table: Array[ReduceAction] is noinit
-       private fun build_reduce_table is abstract
+       private fun build_reduce_table: Array[ReduceAction] is abstract
 end
 
 redef class Prod
@@ -311,6 +311,6 @@ redef class AExpr
                if not self isa ACallExpr then return null
                if not self.n_expr isa AImplicitSelfExpr then return null
                if not self.n_args.n_exprs.is_empty then return null
-               return self.n_id.text
+               return self.n_qid.n_id.text
        end
 end