summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
AgeCommit message (Collapse)Author
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
2014-04-02remove some empty linesYukihiro "Matz" Matsumoto
2014-04-02handle CR before LF; close #1781Yukihiro "Matz" Matsumoto
2014-04-02simpler escape handling in ?c stringsYukihiro "Matz" Matsumoto
2014-04-02fix else indentation styleYukihiro "Matz" Matsumoto
2014-03-26add new function mrb_toplevel_run to prevent running through C function ↵Yukihiro "Matz" Matsumoto
boudaries on exceptions; close #1942
2014-03-23Implement \u notation for strings and regexes.chasonr
This change adds the \u notation for double quoted strings and regular expressions. It does not implement the \u notation for character literals. Both the \uNNNN and \u{NNNN} notations are supported. \uNNNN is implemented by emitting equivalent UTF-8; that is, "\u4000" is equivalent to "\xE4\x80\x80". Unlike CRuby, the \u{NNNN} notation allows only one character per pair of braces; I see no way to lift this restriction without remodeling the parser.
2014-03-18add a space after C reserved wordsYukihiro "Matz" Matsumoto
2014-03-15symbol length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-11remove deprecated register keywordtake_cheeze
2014-03-04Use mrb_exc_new_str_lit widelycubicdaiya
2014-03-02add const to char* to pacify warnings for string litral to char* conversionYukihiro "Matz" Matsumoto
2014-03-01support c++ exceptiontake_cheeze
2014-03-01use C style comments instead of C++ style commentscubicdaiya
According to CONTRIBUTING.md, Don't use C++ style comments /* This is the prefered comment style */ Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
2014-01-31remove conflictYukihiro "Matz" Matsumoto
2014-01-31reindent parse.yh2so5
2014-01-31clean up external symbolscremno
remove unused and unneeded: - sysexit_status - type (a global variable) add mrb_ prefix to: - codedump_all - class_instance_method_list - parser_dump make various functions static, incl.: - yyparse - make_exception
2014-01-31refactor parser lineno adjustment; ref #1667Yukihiro "Matz" Matsumoto
2014-01-30add semicolon after the statementsYukihiro "Matz" Matsumoto
2014-01-30more accurate backtrace linenoh2so5
2014-01-08adjust lineno after continuing script files using mrb_partial_hook; close #1652Yukihiro "Matz" Matsumoto
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-11-13load_exec() no longer return fixnum value for no_exec; should close #1569Yukihiro "Matz" Matsumoto
2013-11-10cancel #1565 since it breaks mirb; instead add special treatment to heredocsYukihiro "Matz" Matsumoto
2013-11-09Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2013-11-08Merge pull request #1565 from Fleurer/fix1564Yukihiro "Matz" Matsumoto
nextc(): always return an '\n' at end of input
2013-11-08nextc(): always return an '\n' at end of inputfleuria
fix #1564
2013-11-07modified to use irep->reps to reference child ireps. preparation forYukihiro "Matz" Matsumoto
removing irep array from mrb_state. note that instructions OP_LAMBDA, OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.