summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
AgeCommit message (Collapse)Author
2014-09-04rename a local variable current_node -> nodetype; ref #2583Yukihiro "Matz" Matsumoto
2014-09-03get rid of shadowing variablescremno
Mostly by renaming the shadowing variable. If a shadowing variable was deleted, the shadowed one can be used instead.
2014-08-29allow no_optimize esp. for debuggerYukihiro "Matz" Matsumoto
2014-08-29Fix mismatches for MRB_API declarations.Tatsuhiko Kubo
2014-08-29adjust node lineno of muiti line statementsYukihiro "Matz" Matsumoto
2014-08-29print lineno of dumping nodeYukihiro "Matz" Matsumoto
2014-08-26printf: cast variables to the expected typecremno
%x expects unsigned int and %p expects void * GCC emits a diagnostic about %p/void* in pedantic mode: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542
2014-08-25Remove spaces in end-of-line.Tatsuhiko Kubo
2014-08-20Use specified macro(NULL) instead of magic-number.Tatsuhiko Kubo
2014-06-25Not create local variables in scope_newksss
2014-06-25Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-06-25Merge pull request #2333 from yui-knk/fix/dumpYukihiro "Matz" Matsumoto
Fix to not print unnecessary comma.
2014-06-25revert #2344 because of #2395Yukihiro "Matz" Matsumoto
2014-06-21clear local variables for the first execution of mrb_context_run(); close #2405Yukihiro "Matz" Matsumoto
2014-06-14Merge pull request #2344 from yui-knk/fix-localsYukihiro "Matz" Matsumoto
Change to always use locals->car->car.
2014-06-13Fixed dead assignment in 'parser.y' reported by 'clang-analyzer'Jose Narvaez
2014-06-13Fixed dead assignment in 'parser.y' reported by 'clang-analyzer'Jose Narvaez
2014-06-13Fixed dead assignment in 'parser.y' reported by 'clang-analyzer'Jose Narvaez
2014-06-13Fixed dead assignment in 'parse.y' reported by 'clang-analyzer'Jose Narvaez
2014-06-08do not ignore negative characters (e.g. EOF and partial EOF); fix #2361 fix ↵Yukihiro "Matz" Matsumoto
#2369
2014-06-08revert #2368 due to #2369Yukihiro "Matz" Matsumoto
2014-06-06Treat partial hook success '\n' to fix #2361 .take_cheeze
Now it will parse the #2361 code as: ``` module A end module B end ``` instead of ``` module A end module B end ```
2014-06-05use uppercase US-ASCII ctype macroscremno
2014-06-05don't (re-)define `ascii_isspace` and `isascii`cremno
`ISSPACE` and `ISASCII` can be used instead.
2014-06-05`ISSPACE` evaluates its argument multiple timescremno
2014-06-03Fix indent.yui-knk
2014-06-03Remove space.yui-knk
2014-06-02Change to always use locals->car->car.yui-knk
When p->locals->car is not NULL and p->locals->car->car is NULL, local_add_f dose not append sym to p->locals->car->car. This commit change to append sym to p->locals->car->car. This will close #2333.
2014-05-31Remove space.yui-knk
2014-05-31Fix to not print unnecessary comma.yui-knk
When `n2->car` is 0 and `n2->cdd` is not 0, unnecessary comma was printed before first local variables.
2014-05-30add internal function mrb_toplevel_run_keep() to keep stack contents; close ↵Yukihiro "Matz" Matsumoto
#2326
2014-05-27fix indent.yui-knk
2014-05-16Add new line behind return typeJun Hiroe
2014-05-05fix memcpy-param-overlapcremno
2014-05-03count skipped line numbersNobuyoshi Nakada
2014-05-03skip to the next line and reset column after `=end`Nobuyoshi Nakada
2014-05-03fix char after `=end`Nobuyoshi Nakada
skips() advance after the string skipped.
2014-05-03fix embedded documentsNobuyoshi Nakada
tabs are allowed after `=begin` and `=end`. raise `SyntaxError` if no =end is found.
2014-05-03fix condition for the rest of inputNobuyoshi Nakada
the input must rest the length of a string to be peeked at least. fixes parse error at embedded documents by string eval, and `-e` command line options.
2014-04-28Accept =begin and =end with spaces afterCarson McDonald
2014-04-28make peek_n append p->pb to listCarson McDonald
2014-04-25Fix lineno overwrite in parser_init_cxt.take_cheeze
By reordering parsing string with mrb_parser_parse won't always start with line 1.
2014-04-21fix optional block arguments in rhsNobuyoshi Nakada
define optional block arguments as argument variables in the rhs default expressions, as same as mere assignment expressions. Import ruby/ruby@01740f0c273c89f7bcff3d5014d73c8ff6fb1986
2014-04-21adjust indentNobuyoshi Nakada
2014-04-21fix optional arguments in rhsNobuyoshi Nakada
define optional arguments as argument variables in the rhs default expressions, as same as mere assignment expressions. Import ruby/ruby@01740f0c273c89f7bcff3d5014d73c8ff6fb1986
2014-04-21allow method definition in cmdargNobuyoshi Nakada
save cmdarg_stack and isolate command argument state from outer scope to allow method definition in cmdarg import from ruby/ruby@04bb9d6b75a55d4000700769eead5a5cb942c25b
2014-04-21use `stack_type` instead of raw `unsigned int`Nobuyoshi Nakada
2014-04-19Allow parenthesed do-block in cmdargNobuyoshi Nakada
Flush cmdarg flags inside left-paren in a command argument, to allow parenthesed `do-block` as an argument without arguments parentheses. `CMDARG_PUSH(0)` for tLPAREN_ARG is before `CMDARG_PUSH(1)` in `command_args` due to look-ahead.
2014-04-08Fix wrong `mrb_bug` use found with mruby-clang-plugin.take_cheeze
2014-04-04backslash escapes in regexp should be addressed by Regexp processor; close #2005Yukihiro "Matz" Matsumoto